Skip to content

Commit 2b3021f

Browse files
authored
Update main.yml
1 parent 908b7cc commit 2b3021f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
uses: actions/checkout@v2
1313
with:
1414
fetch-depth: 0
15+
- name: get_timestamp
16+
id: date
17+
run: echo "::set-output name=date::$(date +'%Y-%m-%d_%H-%M-%S')"
1518
- name: build artifacts
1619
run: |
1720
mkdir release
@@ -26,8 +29,7 @@ jobs:
2629
with:
2730
draft: false
2831
prerelease: false
29-
release_name: ${{ github.ref }}
30-
tag_name: ${{ github.ref }}
32+
release_name: release-${{ steps.date.outputs.date }}
3133
env:
3234
GITHUB_TOKEN: ${{ github.token }}
3335
- name: upload linux artifact
@@ -36,7 +38,7 @@ jobs:
3638
GITHUB_TOKEN: ${{ github.token }}
3739
with:
3840
upload_url: ${{ steps.create_release.outputs.upload_url }}
39-
asset_path: a.zip
40-
asset_name: a.zip
41+
asset_path: release.zip
42+
asset_name: release.zip
4143
asset_content_type: application/zip
4244

0 commit comments

Comments
 (0)