glitch-in-the-system/.github/workflows/build.yml

75 lines
2.2 KiB
YAML
Raw Normal View History

name: Build & Publish
2019-12-28 03:26:41 +01:00
on:
release:
types:
- created
jobs:
Build:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux, windows, mac]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: ''
run: |
2019-12-21 06:23:50 +01:00
pip install bumpversion --user
2019-12-21 06:17:05 +01:00
export regex="([0-9]+.[0-9]+.[0-9]+)"
echo ${{ github.ref }} > tag.txt
2019-12-21 06:17:05 +01:00
VERSION=`grep -Po "${regex}" tag.txt`
bumpversion --new-version ${VERSION}
- name: Build
id: build
uses: josephbmanley/build-godot-action@refactor/build
with:
name: glitchinthesystem
preset: ${{ matrix.platform }}
subdirectory: gits
- name: GitHub Release Artifact
uses: josephbmanley/upload-to-release@feature/remoteName
with:
args: ${{ steps.build.outputs.artifact }} application/zip ${{ matrix.platform }}.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: ${{ matrix.platform }}
PACKAGE: ${{ steps.build.outputs.artifact }}
HTML:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
2019-12-28 03:15:43 +01:00
- uses: josephbmanley/auto-semver-action@master
with:
2019-12-28 03:18:31 +01:00
action: updateFiles
version: ${{ github.ref }}
- 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 }}