Skip to content

create release on tag #4

create release on tag

create release on tag #4

Workflow file for this run

name: create release on tag
on:
release:
types: [created]
defaults:
run:
shell: bash
env:
PYTHON_VERSION: 3.12.4
jobs:
create-package:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
# checkout repository to runner
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: install package using aqua
uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1
with:
aqua_version: v2.29.0
- name: set up python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: run buildd
run: |
rye pin ${{ env.PYTHON_VERSION }}
rye sync
rye build
- name: Get the tag name
id: get_tag
run: echo "PACKAGE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
release-package:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./dist
permissions:
contents: write
strategy:
matrix:
package_file: [
"my_portscanner-${{ env.PACKAGE_VERSION }}-py3-none-any.whl",

Check failure on line 54 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / create release on tag

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 54, Col: 11): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PACKAGE_VERSION .github/workflows/release.yaml (Line: 55, Col: 11): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PACKAGE_VERSION
"my_portscanner-${{ env.PACKAGE_VERSION }}.tar.gz"
]
steps:
- name: clone application source code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: upload Releases
uses: shogo82148/actions-upload-release-asset@8f032eff0255912cc9c8455797fd6d72f25c7ab7 # v1.7.5
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ matrix.package_file }}
asset_name: ${{ matrix.package_file }}