Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 959ab86

Browse files
committedApr 26, 2021
new release system
1 parent 3bd2df3 commit 959ab86

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed
 

‎.github/workflows/release.yml

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
name: Create a release
22
on: [push]
33
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
2424
build-and-release:
2525
name: Build the Game and upload the files
2626
runs-on: "ubuntu-latest"
@@ -50,7 +50,7 @@ jobs:
5050
targetPlatform: ${{ matrix.platform }}
5151
- name: Extract tag name
5252
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\//}
5454
- name: Zip
5555
uses: papeloto/action-zip@v1
5656
with:
@@ -62,4 +62,4 @@ jobs:
6262
repo_token: ${{ secrets.GITHUB_TOKEN }}
6363
file: Build.zip
6464
asset_name: ${{ matrix.platform }}.zip
65-
tag: latest
65+
tag: ${{ steps.tag.outputs.VERSION }}

0 commit comments

Comments
 (0)
Please sign in to comment.