Skip to content

Commit

Permalink
Create deploy_on_itch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
janekx21 authored Jan 22, 2024
1 parent bf473b0 commit 21517ab
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/deploy_on_itch.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/[email protected]
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}}

0 comments on commit 21517ab

Please sign in to comment.