Skip to content

Commit faf1389

Browse files
authored
Update python-app.yml
1 parent 58a5935 commit faf1389

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/python-app.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,33 @@ jobs:
3131
- name: Package Application
3232
run: |
3333
cd src
34-
pyinstaller --onefile --name docker-dev-lamp docker-dev-lamp-env.py
34+
pyinstaller --onefile --name docker-dev-lamp-${{ runner.os }} docker-dev-lamp-env.py
3535
- uses: actions/upload-artifact@v2
3636
with:
3737
name: docker-dev-lamp-${{ runner.os }}
3838
path: src/dist/*
39+
40+
create_release:
41+
needs: build
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v3
3945
- name: Create Tag
40-
if: matrix.os == 'ubuntu-latest'
4146
id: create_tag
4247
run: |
43-
$VERSION = Get-Date -Format "yyyyMMddHHmmss"
44-
echo "VERSION=$VERSION" >> $env:GITHUB_ENV
48+
VERSION=$(date +"%Y%m%d%H%M%S")
49+
echo "VERSION=$VERSION" >> $GITHUB_ENV
4550
git tag $VERSION
4651
git push origin $VERSION
47-
shell: pwsh
52+
- name: Download all artifacts
53+
uses: actions/download-artifact@v2
54+
with:
55+
path: artifacts
4856
- name: Create GitHub Release
49-
if: matrix.os == 'ubuntu-latest'
5057
uses: softprops/action-gh-release@v1
5158
with:
5259
files: |
53-
src/dist/*
60+
artifacts/**/*
5461
tag_name: ${{ env.VERSION }}
5562
name: Release ${{ env.VERSION }}
5663
env:

0 commit comments

Comments
 (0)