You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
name: Upload itch.io Package |
|
|
|
on: |
|
workflow_dispatch: |
|
inputs: |
|
pkg_name: |
|
description: the name of the project |
|
type: string |
|
required: true |
|
workflow_call: |
|
inputs: |
|
pkg_name: |
|
description: the name of the project |
|
type: string |
|
required: true |
|
|
|
permissions: |
|
contents: read |
|
|
|
jobs: |
|
release-itchio-build: |
|
# runs-on: ubuntu-latest |
|
runs-on: self-hosted |
|
|
|
steps: |
|
- uses: actions/checkout@v4 |
|
- name: Install Butler |
|
shell: bash |
|
run: | |
|
# Download the latest stable version |
|
curl -L -o butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default |
|
unzip butler.zip |
|
chmod +x butler |
|
- name: create web package |
|
shell: bash |
|
run: | |
|
tools/webExporterInit.sh |
|
- name: Upload to itch.io |
|
env: |
|
BUTLER_API_KEY: ${{ secrets.ITCHIO_TOKEN }} |
|
shell: bash |
|
run: | |
|
./butler push itchExport.zip ${{ secrets.ITCHIO_USER }}/${{ inputs.pkg_name }}:html5
|
|
|