1
1
name : Create a release
2
2
on : [push]
3
3
jobs :
4
- create-release :
5
- name : Create the release
6
- runs-on : " ubuntu-latest"
7
- if : startsWith(github.ref, 'refs/tags/')
8
- steps :
9
- - name : Create VERSION.txt
10
- id : tag
11
- run : |
12
- echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
13
- echo ${GITHUB_REF/refs\/tags\/v/} > VERSION.txt
14
- cat VERSION.txt
15
- - name : Create Release
16
- uses : " marvinpinto/action-automatic-releases@latest"
17
- with :
18
- repo_token : " ${{ secrets.GITHUB_TOKEN }}"
19
- prerelease : false
20
- automatic_release_tag : latest
21
- title : Release v${{ steps.tag.outputs.VERSION }}
22
- files : |
23
- VERSION.txt
4
+ # create-release:
5
+ # name: Create the release
6
+ # runs-on: "ubuntu-latest"
7
+ # if: startsWith(github.ref, 'refs/tags/')
8
+ # steps:
9
+ # - name: Create VERSION.txt
10
+ # id: tag
11
+ # run: |
12
+ # echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
13
+ # echo ${GITHUB_REF/refs\/tags\/v/} > VERSION.txt
14
+ # cat VERSION.txt
15
+ # - name: Create Release
16
+ # uses: "marvinpinto/action-automatic-releases@latest"
17
+ # with:
18
+ # repo_token: "${{ secrets.GITHUB_TOKEN }}"
19
+ # prerelease: false
20
+ # automatic_release_tag: v${{ steps.tag.outputs.VERSION }}
21
+ # title: Release v${{ steps.tag.outputs.VERSION }}
22
+ # files: |
23
+ # VERSION.txt
24
24
build-and-release :
25
25
name : Build the Game and upload the files
26
26
runs-on : " ubuntu-latest"
50
50
targetPlatform : ${{ matrix.platform }}
51
51
- name : Extract tag name
52
52
id : tag
53
- run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v /}
53
+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
54
54
- name : Zip
55
55
uses : papeloto/action-zip@v1
56
56
with :
62
62
repo_token : ${{ secrets.GITHUB_TOKEN }}
63
63
file : Build.zip
64
64
asset_name : ${{ matrix.platform }}.zip
65
- tag : latest
65
+ tag : ${{ steps.tag.outputs.VERSION }}
0 commit comments