GameDrivenDesign / docker-godot-export

Docker image to automatically export your Godot games.
https://hub.docker.com/r/gamedrivendesign/godot-export/
MIT License
45 stars 10 forks source link

Add github action.yml #7

Open erodozer opened 4 years ago

erodozer commented 4 years ago

Action yml provided for use with Github Actions. While this isn't necessary since you can just make a job using a docker file, this is helpful if you want to include additional steps. I plan on doing things like also having an action to automatically upload the artifacts to itchio as well, so it's useful to have this as an actions.

Example workflow of how I'm using it with my game right now.

name: CI

on: [push]

jobs:
  build:
    name: Export with Godot
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: Generate windows binary
      uses: nhydock/docker-godot-export@master
      with:
        export-template: "Windows Desktop"
        output-filename: "adventure"
    - name: Upload binary executable
      uses: actions/upload-artifact@v1
      with:
        name: adventure.exe
        path: output/adventure.exe
    - name: Upload binary archives
      uses: actions/upload-artifact@v1
      with:
        name: adventure.pck
        path: output/adventure.pck