Skip to content

Commit 7bdea67

Browse files
committed
revert auto-release
1 parent 7346c2f commit 7bdea67

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/auto-release.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,30 @@ on:
33
push:
44
tags:
55
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
6+
# Pick a branch to generate a new build
67
branches: [ master ]
78

89
jobs:
10+
# We define the commit hash and also create the release just once or there are errors
911
create-release:
1012
runs-on: ubuntu-latest
1113
outputs:
14+
# We can access this values in the other jobs
1215
upload_url: ${{ steps.create_release.outputs.upload_url }}
1316
version: ${{ steps.get_version.outputs.version }}
17+
#sha_short: ${{ steps.vars.outputs.sha_short }}
1418
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)"
1527
- name: Get the version
1628
id: get_version
17-
run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
29+
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
1830
- name: Create Release
1931
id: create_release
2032
uses: actions/create-release@v1
@@ -31,14 +43,14 @@ jobs:
3143
needs: [create-release]
3244
steps:
3345
- name: Checkout repo
34-
uses: actions/checkout@v3
46+
uses: actions/checkout@v2
3547
with:
3648
submodules: recursive
3749
- name: Package project
3850
run: zip --junk-paths matrix matrix.hpp
3951
- name: Upload Release Asset
4052
id: upload-release-asset
41-
uses: softprops/action-gh-release@v1
53+
uses: actions/upload-release-asset@v1
4254
env:
4355
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4456
with:

0 commit comments

Comments
 (0)