Skip to content

Commit 41a67b0

Browse files
committed
Merge branch 'master' of https://github.com/n19k6/squarewave
2 parents b69d659 + 5afcd97 commit 41a67b0

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,20 @@ jobs:
1717
run: echo "::set-output name=date::$(date +'%Y-%m-%d_%H-%M-%S')"
1818
- name: build artifacts
1919
run: |
20-
mkdir release
21-
cp v10_prototype_version_2/20220109/helper.py release/helper.py
22-
cp v10_prototype_version_2/20220109/config.py release/config.py
23-
cp v10_prototype_version_2/20220109/ecu_simulator_v1.py release/main.py
24-
cp v10_prototype_version_2/20220109/test_02_calc_hash_2.py release/generate_config.py
25-
zip release.zip release
20+
mkdir release_${{ steps.date.outputs.date }}
21+
cp v10_prototype_version_2/20220109/helper.py release_${{ steps.date.outputs.date }}/helper.py
22+
cp v10_prototype_version_2/20220109/config.py release_${{ steps.date.outputs.date }}/config.py
23+
cp v10_prototype_version_2/20220109/ecu_simulator_v1.py release_${{ steps.date.outputs.date }}/main.py
24+
cp v10_prototype_version_2/20220109/test_02_calc_hash_2.py release_${{ steps.date.outputs.date }}/generate_config.py
25+
zip release_${{ steps.date.outputs.date }}.zip release_${{ steps.date.outputs.date }}/*
2626
- name: release
2727
uses: actions/create-release@v1
2828
id: create_release
2929
with:
3030
draft: false
3131
prerelease: false
3232
release_name: release-${{ steps.date.outputs.date }}
33+
tag_name: tag-${{ steps.date.outputs.date }}
3334
env:
3435
GITHUB_TOKEN: ${{ github.token }}
3536
- name: upload linux artifact
@@ -38,7 +39,7 @@ jobs:
3839
GITHUB_TOKEN: ${{ github.token }}
3940
with:
4041
upload_url: ${{ steps.create_release.outputs.upload_url }}
41-
asset_path: release.zip
42-
asset_name: release.zip
42+
asset_path: release_${{ steps.date.outputs.date }}.zip
43+
asset_name: release_${{ steps.date.outputs.date }}.zip
4344
asset_content_type: application/zip
4445

0 commit comments

Comments
 (0)