Include release tag extraction needed for last step
This commit is contained in:
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@@ -146,9 +146,12 @@ jobs:
|
||||
- name: Build with pyinstaller
|
||||
run: |
|
||||
micromamba activate eos_build
|
||||
$env:RELEASE_TAG = (python -c "import eos;print('v'+eos.__version__)")
|
||||
echo "RELEASE_TAG=$env:RELEASE_TAG" >> $env:GITHUB_ENV
|
||||
|
||||
pyinstaller windows_build.spec
|
||||
cd dist\eos
|
||||
Compress-Archive -Path .\* -Destination ..\..\eos.zip
|
||||
Compress-Archive -Path .\* -Destination "..\..\eos-$env:RELEASE_TAG.zip"
|
||||
- name: Update Release
|
||||
if: ${{ (github.event_name != 'workflow_dispatch') || (contains(fromJson('["all_incl_release"]'), github.event.inputs.build-items)) }}
|
||||
uses: actions/gitea-release-action@v1
|
||||
@@ -156,4 +159,4 @@ jobs:
|
||||
name: "Amor-Eos ${{ env.RELEASE_TAG }}"
|
||||
tag_name: "${{ env.RELEASE_TAG }}"
|
||||
files: |-
|
||||
eos.zip
|
||||
"eos-$env:RELEASE_TAG.zip"
|
||||
|
||||
Reference in New Issue
Block a user