Joseph Manley
0e4cbcd31d
if if Container Build via matrix Update version & build Fix Fix Fix Fix Update
73 lines
2.2 KiB
YAML
73 lines
2.2 KiB
YAML
name: Build & Publish
|
|
|
|
on: release
|
|
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
platform: [linux, windows, mac]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: ''
|
|
run: |
|
|
pip install bumpversion
|
|
export regex=v([0-9]+.[0-9]+.[0-9]+)
|
|
echo ${{ github.ref }} > tag.txt
|
|
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
|
|
- 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 }} |