Compare commits
8 Commits
feature/se
...
0.1.0
Author | SHA1 | Date | |
---|---|---|---|
42259a89ed | |||
5f2306c72a | |||
009af9364c | |||
0ec4bb3734 | |||
17d11dacd6 | |||
dc75911f2f | |||
f2c104f2dc | |||
2409937560 |
54
.github/workflows/build.yml
vendored
54
.github/workflows/build.yml
vendored
@ -1,27 +1,27 @@
|
|||||||
name: Build & Publish
|
name: Build & Publish
|
||||||
|
|
||||||
on: release
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- created
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build:
|
Build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [linux, windows, mac]
|
platform: [linux, windows, osx]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: ''
|
- name: Update Version
|
||||||
run: |
|
id: semver
|
||||||
pip install bumpversion
|
uses: RightBrain-Networks/semver-action@1.0.0
|
||||||
export regex=v([0-9]+.[0-9]+.[0-9]+)
|
with:
|
||||||
echo ${{ github.ref }} > tag.txt
|
mode: get
|
||||||
VERSION=`grep -Po '${regex}' tag.txt`
|
|
||||||
bumpversion --new-version ${VERSION}
|
|
||||||
- name: Build
|
- name: Build
|
||||||
id: build
|
id: build
|
||||||
uses: josephbmanley/build-godot-action@refactor/build
|
uses: josephbmanley/build-godot-action@v1.3.2
|
||||||
with:
|
with:
|
||||||
name: glitchinthesystem
|
name: glitchinthesystem
|
||||||
preset: ${{ matrix.platform }}
|
preset: ${{ matrix.platform }}
|
||||||
@ -36,38 +36,8 @@ jobs:
|
|||||||
uses: josephbmanley/butler-publish-itchio-action@v1.0.0
|
uses: josephbmanley/butler-publish-itchio-action@v1.0.0
|
||||||
env:
|
env:
|
||||||
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
|
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
|
||||||
VERSION: develop
|
VERSION: ${{ steps.semver.outputs.VERSION }}
|
||||||
ITCH_USER: joebmanley
|
ITCH_USER: joebmanley
|
||||||
ITCH_GAME: glitchinthesystem
|
ITCH_GAME: glitchinthesystem
|
||||||
CHANNEL: ${{ matrix.platform }}
|
CHANNEL: ${{ matrix.platform }}
|
||||||
PACKAGE: ${{ steps.build.outputs.artifact }}
|
PACKAGE: ${{ steps.build.outputs.artifact }}
|
||||||
HTML:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
- name: ''
|
|
||||||
run: |
|
|
||||||
pip install bumpversion
|
|
||||||
bumpversion --new-version ${SEMVER_NEW_VERSION}
|
|
||||||
- name: Build
|
|
||||||
id: build
|
|
||||||
uses: josephbmanley/build-godot-action@refactor/build
|
|
||||||
with:
|
|
||||||
name: glitchinthesystem
|
|
||||||
preset: html5
|
|
||||||
- name: GitHub Release Artifact
|
|
||||||
uses: josephbmanley/upload-to-release@feature/remoteName
|
|
||||||
with:
|
|
||||||
args: ${{ steps.build.outputs.artifact }} application/zip html5.zip
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Butler Publish
|
|
||||||
uses: josephbmanley/butler-publish-itchio-action@v1.0.0
|
|
||||||
env:
|
|
||||||
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
|
|
||||||
VERSION: develop
|
|
||||||
ITCH_USER: joebmanley
|
|
||||||
ITCH_GAME: glitchinthesystem
|
|
||||||
CHANNEL: html5
|
|
||||||
PACKAGE: ${{ steps.build.outputs.artifact }}
|
|
18
.github/workflows/version.yml
vendored
18
.github/workflows/version.yml
vendored
@ -13,19 +13,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Run auto-semver
|
- name: Run Auto-Semver
|
||||||
id: semver
|
id: semver
|
||||||
run: |
|
uses: RightBrain-Networks/semver-action@1.0.0
|
||||||
export regex='^\\s*current_version\\s*=\\s*\\K[^\\s]+'
|
|
||||||
export RETURN_STATUS=`semver -n`
|
|
||||||
echo "Semver Return Status: ${RETURN_STATUS}"
|
|
||||||
|
|
||||||
export SEMVER_NEW_VERSION=`grep -Po '${regex}' .bumpversion.cfg`
|
|
||||||
export VERSION=`semver_get_version -d`
|
|
||||||
|
|
||||||
echo ::set-output name=RETURN_STATUS::$RETURN_STATUS
|
|
||||||
echo ::set-output name=SEMVER_NEW_VERSION::$SEMVER_NEW_VERSION
|
|
||||||
echo ::set-output name=VERSION::$VERSION
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@ -33,8 +23,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
|
tag_name: ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
|
||||||
release_name: v${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
|
release_name: ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
|
||||||
body: |
|
body: |
|
||||||
Glitch In The System v${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
|
Glitch In The System v${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
|
||||||
draft: false
|
draft: false
|
||||||
|
Reference in New Issue
Block a user