Created
December 22, 2020 01:21
-
-
Save alec-deason/db4e856d83aacdcc8668b64852132aa6 to your computer and use it in GitHub Desktop.
bevy -> itch release workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build releases | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
os-name: windows | |
- os: ubuntu-18.04 | |
os-name: linux | |
- os: macos-latest | |
os-name: mac | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- name: Install alsa | |
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev | |
if: ${{ runner.os == 'Linux' }} | |
- name: Install udev | |
run: sudo apt-get update; sudo apt-get install --no-install-recommends libudev-dev | |
if: ${{ runner.os == 'Linux' }} | |
- name: Build | |
run: cargo build --release | |
- name: Bundle | |
run: ./build_release_bundle.sh | |
- name: Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ matrix.os-name }} | |
path: bundle | |
upload: | |
strategy: | |
matrix: | |
os-name: [linux, windows, mac] | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download build | |
uses: actions/download-artifact@v2 | |
with: | |
name: ${{ matrix.os-name }} | |
- name: upload via butler | |
uses: josephbmanley/butler-publish-itchio-action@master | |
env: | |
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }} | |
CHANNEL: ${{ matrix.os-name}} | |
ITCH_GAME: GAMENAME | |
ITCH_USER: ITCHUSER | |
PACKAGE: bundle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment