File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
tags :
5
5
- ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
6
+ # Pick a branch to generate a new build
6
7
branches : [ master ]
7
8
8
9
jobs :
10
+ # We define the commit hash and also create the release just once or there are errors
9
11
create-release :
10
12
runs-on : ubuntu-latest
11
13
outputs :
14
+ # We can access this values in the other jobs
12
15
upload_url : ${{ steps.create_release.outputs.upload_url }}
13
16
version : ${{ steps.get_version.outputs.version }}
17
+ # sha_short: ${{ steps.vars.outputs.sha_short }}
14
18
steps :
19
+ # This enable to get the commit and can be used for nightly or dev builds
20
+ # - name: Checkout repo
21
+ # uses: actions/checkout@v2
22
+ # - name: Declare Commit Hash
23
+ # id: vars
24
+ # shell: bash
25
+ # run: |
26
+ # echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
15
27
- name : Get the version
16
28
id : get_version
17
- run : echo "version= ${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
29
+ run : echo ::set-output name=version:: ${GITHUB_REF/refs\/tags\//}
18
30
- name : Create Release
19
31
id : create_release
20
32
uses : actions/create-release@v1
@@ -31,14 +43,14 @@ jobs:
31
43
needs : [create-release]
32
44
steps :
33
45
- name : Checkout repo
34
- uses : actions/checkout@v3
46
+ uses : actions/checkout@v2
35
47
with :
36
48
submodules : recursive
37
49
- name : Package project
38
50
run : zip --junk-paths matrix matrix.hpp
39
51
- name : Upload Release Asset
40
52
id : upload-release-asset
41
- uses : softprops/action-gh- release@v1
53
+ uses : actions/upload- release-asset @v1
42
54
env :
43
55
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
56
with :
You can’t perform that action at this time.
0 commit comments