Skip to content

Commit 1162616

Browse files
release workflow
1 parent 7873f6b commit 1162616

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ jobs:
3737
uses: actions/upload-artifact@v2
3838
with:
3939
name: executable-${{ matrix.os }}
40-
path: |
41-
dist/*
40+
path: dist/*
4241

4342
release:
4443
needs: build
@@ -47,30 +46,35 @@ jobs:
4746
- name: Checkout repository
4847
uses: actions/checkout@v2
4948

50-
- name: Download artifacts
49+
- name: Download artifacts (Ubuntu)
5150
uses: actions/download-artifact@v2
5251
with:
5352
name: executable-ubuntu-latest
5453
path: dist/
55-
- name: Download artifacts
54+
55+
- name: Download artifacts (Windows)
5656
uses: actions/download-artifact@v2
5757
with:
5858
name: executable-windows-latest
5959
path: dist/
60-
- name: Download artifacts
60+
61+
- name: Download artifacts (macOS)
6162
uses: actions/download-artifact@v2
6263
with:
6364
name: executable-macos-latest
6465
path: dist/
6566

67+
- name: Create a unique tag
68+
id: create_tag
69+
run: echo "RELEASE_TAG=release-$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV
70+
6671
- name: Create Release
6772
uses: softprops/action-gh-release@v2
6873
env:
6974
GITHUB_TOKEN: ${{ secrets.PAT }}
7075
with:
71-
tag_name: ${{ github.sha }}
72-
release_name: Release ${{ github.sha }}
76+
tag_name: ${{ env.RELEASE_TAG }}
77+
name: Release ${{ env.RELEASE_TAG }}
7378
draft: false
7479
prerelease: false
75-
files: |
76-
dist/*
80+
files: dist/*

0 commit comments

Comments
 (0)