Skip to content

Commit 1b21211

Browse files
committed
Merge branch 'master' of github.com:Daxode/ComplexSoftwareProject
2 parents 9c1ec74 + 393e749 commit 1b21211

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,17 @@ jobs:
3131
echo 'DATE<<EOF' >> $GITHUB_ENV
3232
date +"%d-%m-%y" >> $GITHUB_ENV
3333
echo 'EOF' >> $GITHUB_ENV
34+
echo 'VERSION<<EOF' >> $GITHUB_ENV
35+
python version.py >> $GITHUB_ENV
36+
echo 'EOF' >> $GITHUB_ENV
3437
- name: Create Release
3538
id: create_release
3639
uses: actions/create-release@v1
3740
env:
3841
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
VERSION: v0.0.1
4042
with:
41-
tag_name: ${{env.VERSION}} ${{env.DATE}}
42-
release_name: Release ${{env.VERSION}} ${{env.DATE}}
43+
tag_name: ${{"v"+env.VERSION}}
44+
release_name: Release ${{"v"+env.VERSION}} ${{env.DATE}}
4345
draft: false
4446
prerelease: true
4547
- name: Upload Release Asset
@@ -49,6 +51,6 @@ jobs:
4951
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5052
with:
5153
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
52-
asset_path: dist/Blobtory-0.1_win_amd64.zip
53-
asset_name: Blobtory-Version0.1(win64).zip
54+
asset_path: dist/Blobtory-${{env.VERSION}}_win_amd64.zip
55+
asset_name: Blobtory-Version${{env.VERSION}}(win64).zip
5456
asset_content_type: application/zip

0 commit comments

Comments
 (0)