Commit 7bc6691 1 parent 815875c commit 7bc6691 Copy full SHA for 7bc6691
File tree 2 files changed +32
-20
lines changed
2 files changed +32
-20
lines changed Original file line number Diff line number Diff line change
1
+ name : Main CI Workflow
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [ master ]
6
+ push :
7
+ branches : [ master ]
8
+ tags : ' *'
9
+
10
+ jobs :
11
+ build-and-publish :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout
15
+ run : |
16
+ BRANCH_OR_TAG=${GITHUB_REF#refs/heads/}
17
+ BRANCH_OR_TAG=${BRANCH_OR_TAG#refs/tags/}
18
+ git clone --single-branch --branch $BRANCH_OR_TAG --depth 1 https://${{ secrets.CLONE_TOKEN }}:[email protected] /${{ github.repository }}.git .
19
+ - name : Cleanup
20
+ run : sudo rm -rf "/usr/local/share/boost" "$AGENT_TOOLSDIRECTORY"
21
+ - name : Install prerequisites
22
+ run : sudo apt install make curl zip unzip check -qq
23
+ - name : Build
24
+ run : make
25
+ - name : Upload artifacts
26
+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
27
+ run : |
28
+ artifacts="-a ./Void.zip"
29
+ tag_name="${GITHUB_REF#refs/tags/}"
30
+ hub release create $artifacts -m "$tag_name" "$tag_name"
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments