Code Monkey home page Code Monkey logo

butler-publish-itchio-action's Introduction

Butler Push

This action pushes packages to itch.io with butler to easily automate releases.

Usage

This action will call butler push with parameters configured by environment variables.

Example:

steps:
- uses: manleydev/butler-publish-itchio-action@master
  env:
    BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
    CHANNEL: windows
    ITCH_GAME: example-project
    ITCH_USER: username
    PACKAGE: build/windows

Environment Variables

  • BUTLER_CREDENTIALS REQUIRED

    The key used by butler to authenticate.

    How to get credentials

    To get your Butler credentials, you can follow the CI Builds Credentials documentation on Itch.io

  • CHANNEL REQUIRED

    The itch.io channel to push to. This would be the platform and artifact you would like to use.

    Some examples would be:

    • windows
    • linux
    • osx

    You can read more about channel names here: https://itch.io/docs/butler/pushing.html#channel-names

  • ITCH_GAME REQUIRED

    The logical name the game you want to push to.

    Eg. If your URL is https://username.itch.io/example-project, your value for ITCH_GAME would be example-project.

  • ITCH_USER REQUIRED

    The username of the owner of the game you are pushing to.

  • PACKAGE REQUIRED

    The directory or file to push to Itch.io

  • VERSION

    The version of your project to have in your release.

    Note: If both VERSION and VERSION_FILE are empty, versioning will be handled by Itch.io

  • VERSION_FILE

    The file containing your version number to have in your release.

    Note: If both VERSION and VERSION_FILE are empty, versioning will be handled by Itch.io

butler-publish-itchio-action's People

Contributors

leereilly avatar relsqui avatar skarnl avatar yeslayla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

butler-publish-itchio-action's Issues

Stuck on "Build josephbmanley/butler-publish-itchio-action@master"

GithubActions has been getting stuck on this step whenever it tries to run the workflow, would you know any reason why?

Workflow File Below

name: Build

on:
  push:
    branches: [ main ]

jobs:
  build-win:
    runs-on: windows-latest
    steps:
    - uses: actions/checkout@v1
    - name: Set up Python 3.9
      uses: actions/setup-python@v1
      with:
        python-version: 3.9
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install pyinstaller
        pip install pygame
    - name: Build Game
      run: |
        pyinstaller game/game.py --onedir --clean -n win --distpath dist --noconfirm --windowed
    - name: Copy Files
      run: |
        copy game/icon32x32.png dist/win
        copy game/font.ttf dist/win
        copy game/title.ttf dist/win
    - name: Upload Build
      uses: actions/upload-artifact@v2
      with:
        name: windows-build
        path: dist/*
  build-mac:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v1
    - name: Set up Python 3.9
      uses: actions/setup-python@v1
      with:
        python-version: 3.9
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install pyinstaller
        pip install pygame
    - name: Build Game
      run: |
        pyinstaller game/game.py --onedir --clean -n mac --distpath dist --noconfirm --windowed
    - name: Copy Files
      run: |
        cp game/icon32x32.png dist/mac
        cp game/font.ttf dist/mac
        cp game/title.ttf dist/mac
    - name: Upload Build
      uses: actions/upload-artifact@v2
      with:
        name: macos-build
        path: dist/*
  push:
    needs: [build-win,build-mac]
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Download Build
      uses: actions/download-artifact@v2
      with:
        name: windows-build,mac-build
    - name: Push Windows Build
      uses: josephbmanley/butler-publish-itchio-action@master
      env:
        BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
        CHANNEL: windows
        ITCH_GAME: red-rectangle
        ITCH_USER: EpicPuppy613
        PACKAGE: win
    - name: Push Mac Build
      uses: josephbmanley/butler-publish-itchio-action@master
      env:
        BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
        CHANNEL: mac
        ITCH_GAME: red-rectangle
        ITCH_USER: EpicPuppy613
        PACKAGE: mac

Edit: It doesn't get stuck, but it can take up to 10 minutes to build

Support Status

Is this action still supported? And if it is, will #5 ever be fixed, now that containers are supported on Windows?

CentOS 8 end of life

It looks like CentOS 8 went EOL in December 2021 according this.

This broke my pipelines that use this GitHub action. I now get the following error:

Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.