File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ push
5+
6+ jobs :
7+ build_release :
8+ name : build_release
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : checkout
12+ uses : actions/checkout@v2
13+ with :
14+ fetch-depth : 0
15+ - name : get_timestamp
16+ id : date
17+ run : echo "::set-output name=date::$(date +'%Y-%m-%d_%H-%M-%S')"
18+ - name : build artifacts
19+ run : |
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 }}/*
26+ - name : release
27+ uses : actions/create-release@v1
28+ id : create_release
29+ with :
30+ draft : false
31+ prerelease : false
32+ release_name : release-${{ steps.date.outputs.date }}
33+ tag_name : tag-${{ steps.date.outputs.date }}
34+ env :
35+ GITHUB_TOKEN : ${{ github.token }}
36+ - name : upload linux artifact
37+ uses : actions/upload-release-asset@v1
38+ env :
39+ GITHUB_TOKEN : ${{ github.token }}
40+ with :
41+ upload_url : ${{ steps.create_release.outputs.upload_url }}
42+ asset_path : release_${{ steps.date.outputs.date }}.zip
43+ asset_name : release_${{ steps.date.outputs.date }}.zip
44+ asset_content_type : application/zip
45+
You can’t perform that action at this time.
0 commit comments