Update itch.yml #54
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: Publish Builds | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
env: | |
itch_project: quiyetbrul/flappy-bird | |
BUTLER_API_KEY: ${{ secrets.ITCHIO_API_KEY }} | |
BUILD_TYPE: Release | |
jobs: | |
linux: | |
name: Publish Linux Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install SFML | |
run: sudo apt-get install libsfml-dev | |
- name: Set up butler | |
uses: jdno/setup-butler@v1 | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Publish game to itch.io | |
run: | | |
butler push ${{github.workspace}}/build ${{ env.itch_project }}:linux-universal | |
macos: | |
name: Publish macOS Build | |
runs-on: macos | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install SFML | |
run: brew install sfml | |
- name: Set up butler | |
run: jdno/setup-butler@v1 | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Publish game to itch.io | |
run: | | |
butler push ${{github.workspace}}/build ${{ env.itch_project }}::macos-universal |