From e338c97a348383a8da604076611640b6d20b7111 Mon Sep 17 00:00:00 2001 From: Piotr Siuszko Date: Fri, 8 Dec 2023 15:51:25 +0100 Subject: [PATCH] Test itch.io --- .github/workflows/itch.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/itch.yml diff --git a/.github/workflows/itch.yml b/.github/workflows/itch.yml new file mode 100644 index 0000000..26cc266 --- /dev/null +++ b/.github/workflows/itch.yml @@ -0,0 +1,43 @@ +name: Github Pages + +# By default, runs if you push to master. keeps your deployed app in sync with master branch. +on: + push: + branches: + - main + - master +# to only run when you do a new github release, comment out above part and uncomment the below trigger. +# on: +# release: +# types: +# - published + +permissions: + contents: write # for committing to gh-pages branch. + +jobs: + build-itch-io: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 # repo checkout + - uses: actions-rs/toolchain@v1 # get rust toolchain for wasm + with: + profile: minimal + toolchain: stable + target: wasm32-unknown-unknown + override: true + - name: Rust Cache # cache the rust build artefacts + uses: Swatinem/rust-cache@v2 + - name: Download and install Trunk binary + run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf- + - name: Build + run: ./trunk build --release --public-url "html/9265032/" + - name: Itch.io - Publish + uses: KikimoraGames/itch-publish@v0.0.3 + with: + gameData: ./dist + itchUsername: Leinnan + itchGameId: rpack + buildChannel: wasm + butlerApiKey: ${{ secrets.butlerApi }} + \ No newline at end of file