Readme new keybinds #29
Workflow file for this run
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: Release to itch.io | |
on: | |
push: | |
tags: | |
- 'v*' | |
env: | |
ITCH_USER_NAME: apos | |
ITCH_GAME_NAME: mitten | |
PROJECT_PATH: Platforms/DesktopGL | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
env: | |
MGFXC_WINE_PATH: /home/runner/.winemonogame | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Get version from tag | |
run: | | |
TAGVERSION=$(git describe --tags --abbrev=0) | |
echo "TAGVERSION=${TAGVERSION:1}" >> $GITHUB_ENV | |
- name: Setup Wine | |
run: | | |
sudo apt update | |
sudo apt install wine64 p7zip-full | |
wget -qO- https://raw.githubusercontent.com/MonoGame/MonoGame/develop/Tools/MonoGame.Effect.Compiler/mgfxc_wine_setup.sh | sh | |
- name: Build Windows | |
run: dotnet publish ${{ env.PROJECT_PATH }} -r win-x64 -c Release --output artifacts/windows --self-contained | |
- name: Build Osx | |
run: dotnet publish ${{ env.PROJECT_PATH }} -r osx-x64 -c Release --output artifacts/osx --self-contained | |
- name: Build Linux | |
run: dotnet publish ${{ env.PROJECT_PATH }} -r linux-x64 -c Release --output artifacts/linux --self-contained | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14.x' | |
- name: rcedit icon fix | |
run: | | |
mkdir dep | |
cd dep | |
npm init -y | |
npm i rcedit | |
cd .. | |
wine dep/node_modules/rcedit/bin/rcedit-x64.exe ./artifacts/windows/Mitten.exe --set-icon ./Platforms/DesktopGL/Icon.ico --set-product-version "${{ env.TAGVERSION }}" | |
- name: Publish Windows build to itch.io | |
uses: josephbmanley/butler-publish-itchio-action@master | |
env: | |
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }} | |
CHANNEL: windows | |
ITCH_GAME: ${{ env.ITCH_GAME_NAME }} | |
ITCH_USER: ${{ env.ITCH_USER_NAME }} | |
PACKAGE: artifacts/windows | |
VERSION: ${{ env.TAGVERSION }} | |
- name: Publish OSX build to itch.io | |
uses: josephbmanley/butler-publish-itchio-action@master | |
env: | |
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }} | |
CHANNEL: osx | |
ITCH_GAME: ${{ env.ITCH_GAME_NAME }} | |
ITCH_USER: ${{ env.ITCH_USER_NAME }} | |
PACKAGE: artifacts/osx | |
VERSION: ${{ env.TAGVERSION }} | |
- name: Publish Linux build to itch.io | |
uses: josephbmanley/butler-publish-itchio-action@master | |
env: | |
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }} | |
CHANNEL: linux | |
ITCH_GAME: ${{ env.ITCH_GAME_NAME }} | |
ITCH_USER: ${{ env.ITCH_USER_NAME }} | |
PACKAGE: artifacts/linux | |
VERSION: ${{ env.TAGVERSION }} |