File tree 1 file changed +38
-0
lines changed
1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release workflow
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ permissions :
9
+ contents : write
10
+
11
+ jobs :
12
+ release :
13
+ name : Release on GitHub
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Build project
20
+ run : |
21
+ cd /home/runner/work/ocsinventoryng/
22
+ rm -r ocsinventoryng/.git* ocsinventoryng/test ocsinventoryng/tools
23
+ tar -zcvf ocsinventoryng-${{ github.ref_name }}.tgz ocsinventoryng
24
+
25
+ - name : Upload release
26
+ uses : actions/upload-artifact@v4
27
+ with :
28
+ name : ocsinventoryng-${{ github.ref_name }}.tgz
29
+ path : /home/runner/work/ocsinventoryng/ocsinventoryng-${{ github.ref_name }}.tgz
30
+
31
+ - name : Create release
32
+ uses : softprops/action-gh-release@v2
33
+ with :
34
+ files : /home/runner/work/ocsinventoryng/ocsinventoryng-${{ github.ref_name }}.tgz
35
+ body : " New release is available"
36
+ name : ${{ github.ref_name }}
37
+ draft : true
38
+ generate_release_notes : true
You can’t perform that action at this time.
0 commit comments