7 changed files with 114 additions and 24 deletions
@ -0,0 +1,62 @@
|
||||
name: Upload itch.io Package |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
inputs: |
||||
pkg_name: |
||||
description: the name of the project |
||||
type: string |
||||
required: true |
||||
# pkg_folder: |
||||
# description: the folder containing the pyproject.toml file |
||||
# type: string |
||||
# required: true |
||||
workflow_call: |
||||
inputs: |
||||
pkg_name: |
||||
description: the name of the project |
||||
type: string |
||||
required: true |
||||
# pkg_folder: |
||||
# description: the folder containing the pyproject.toml file |
||||
# type: string |
||||
# required: true |
||||
# release: |
||||
# types: [published] |
||||
|
||||
permissions: |
||||
contents: read |
||||
|
||||
jobs: |
||||
release-build: |
||||
# runs-on: ubuntu-latest |
||||
runs-on: self-hosted |
||||
|
||||
# defaults: |
||||
# run: |
||||
# working-directory: ${{ inputs.pkg_folder }} |
||||
|
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
# - uses: actions/setup-python@v5 |
||||
# with: |
||||
# python-version: "3.x" |
||||
- 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_CREDENTIALS: ${{ secrets.ITCHIO_TOKEN }} |
||||
shell: bash |
||||
run: | |
||||
echo ${BUTLER_CREDENTIALS} > ~/.config/itch/butler_creds |
||||
./butler push dist/* ${{ secrets.ITCHIO_USER }}/${{ inputs.pkg_name }}:html5 |
||||
./butler logout --assume-yes |
||||
@ -1,12 +0,0 @@
|
||||
{ |
||||
"libs" : [ |
||||
{"pkg" :"bin/TermTk.tgz", |
||||
"name": "TermTk"}, |
||||
{"pkg" :"bin/DPT.tgz", |
||||
"name": "Dumb Paint Tool"} |
||||
], |
||||
"pkgs" : [ |
||||
"Pillow" |
||||
], |
||||
"main": "dumbPaintTool.py" |
||||
} |
||||
@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env python3 |
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
import sys,os |
||||
sys.path.append(os.path.join(sys.path[0],'../../')) |
||||
|
||||
from dumbPaintTool.app import main |
||||
|
||||
if __name__ == '__main__': |
||||
main() |
||||
@ -0,0 +1,10 @@
|
||||
{ |
||||
"libs" : [ |
||||
{"pkg" :"bin/TermTk.tgz", "name": "TermTk"}, |
||||
{"pkg" :"bin/DPT.tgz", "name": "Dumb Paint Tool"} |
||||
], |
||||
"pkgs" : [ |
||||
"Pillow" |
||||
], |
||||
"main": "main.py" |
||||
} |
||||
Loading…
Reference in new issue