From 21517ab97c98ef2f53c19118a3a066308cf980bd Mon Sep 17 00:00:00 2001 From: Janek Winkler Date: Mon, 22 Jan 2024 21:43:16 +0100 Subject: [PATCH] Create deploy_on_itch.yml --- .github/workflows/deploy_on_itch.yml | 65 ++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/deploy_on_itch.yml diff --git a/.github/workflows/deploy_on_itch.yml b/.github/workflows/deploy_on_itch.yml new file mode 100644 index 0000000..8f218a5 --- /dev/null +++ b/.github/workflows/deploy_on_itch.yml @@ -0,0 +1,65 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + - name: export game + # Use latest version (see releases for all versions) + uses: firebelley/godot-export@v5.2.1 + with: + # Defining all the required inputs + godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.2.1/Godot_v4.2.1-stable_linux.x86_64.zip + godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.2.1/Godot_v4.2.1-stable_export_templates.tpz + relative_project_path: ./ + + - name: Zip-Release4cpp + uses: darshitsri/zip-release@v3 + with: + # Filename for archive + filename: web.zip + # Base path for archive files + path: . + # Working directory before zipping + directory: ./docs + # List of excluded files / directories + exclusions: # optional, default is + # List of excluded files / directories with recursive wildcards (only applies on Windows with `zip` type) + recursive_exclusions: # optional, default is + # Provide any custom parameters to the command + custom: # optional, default is + # Tool to use for archiving + type: # optional, default is zip + + + - name: Itch.io Upload + # You may pin to the exact commit or the version. + # uses: robpc/itchio-upload-action@c7a5c9ab90447fa38cdc6ba6fd0d52d9801c5417 + uses: robpc/itchio-upload-action@v1.0 + with: + # path to upload + path: ./docs/ + # name of the itchio project + project: acagame + # name of the upload channel + channel: web + api-key: ${{secrets.ITCH_API_KEY}}