File tree 1 file changed +55
-0
lines changed
1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Manual Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ description : ' Version number for the release'
8
+ required : true
9
+ default : ' 1.0.0'
10
+
11
+ jobs :
12
+ build-and-release :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v3
18
+
19
+ - name : Run workflow to build
20
+ uses :
convictional/[email protected]
21
+ with :
22
+ owner : ${{ github.repository_owner }}
23
+ repo : ${{ github.event.repository.name }}
24
+ github_token : ${{ secrets.GITHUB_TOKEN }}
25
+ workflow_file_name : build-love-file.yml
26
+ wait_interval : 10
27
+ trigger_workflow : true
28
+ wait_workflow : true
29
+
30
+ - name : Download artifact
31
+ uses : actions/download-artifact@v3
32
+ with :
33
+ name : Game Build
34
+ path : ./release-artifacts
35
+
36
+ - name : Create Release
37
+ id : create_release
38
+ uses : actions/create-release@v1
39
+ env :
40
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+ with :
42
+ tag_name : v${{ github.event.inputs.version }}
43
+ release_name : Release ${{ github.event.inputs.version }}
44
+ draft : false
45
+ prerelease : false
46
+
47
+ - name : Upload Release Asset
48
+ uses : actions/upload-release-asset@v1
49
+ env :
50
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
+ with :
52
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
53
+ asset_path : ./release-artifacts/Game Build.zip
54
+ asset_name : GameBuild-${{ github.event.inputs.version }}.zip
55
+ asset_content_type : application/zip
You can’t perform that action at this time.
0 commit comments