oh-my-git/.github/workflows/build.yml

63 lines
2 KiB
YAML
Raw Normal View History

2020-10-15 12:30:33 +02:00
name: "Build"
on:
push:
tags:
- '*'
2020-10-15 12:30:33 +02:00
env:
2021-02-05 15:00:13 +01:00
PROJECT_NAME: oh-my-git
2020-10-15 12:30:33 +02:00
GODOT_VERSION: 3.2.3
jobs:
build:
runs-on: ubuntu-20.04
container:
image: barichello/godot-ci:3.2.3
steps:
2021-02-05 20:35:03 +01:00
- name: Get tag name
id: tag_name
run: echo ::set-output name=TAG_NAME::${GITHUB_REF#refs/tags/}
2020-10-20 10:54:33 +02:00
- name: Install dependencies
run: apt-get update && apt-get install -y rsync p7zip make
2020-10-15 12:30:33 +02:00
- uses: actions/checkout@v2
- name: Setup
run: |
mkdir -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/$GODOT_VERSION.stable ~/.local/share/godot/templates/$GODOT_VERSION.stable
2020-11-02 18:42:07 +01:00
- name: Build Linux
2020-10-20 10:54:33 +02:00
run: make linux
2020-11-02 18:42:07 +01:00
- name: Build macOS
2020-10-20 10:54:33 +02:00
run: make macos
2020-11-02 18:42:07 +01:00
- name: Build Windows
run: make windows
2020-10-20 10:54:33 +02:00
- name: Clean up
run: make clean-unzipped
2020-11-02 18:42:07 +01:00
- name: Deploy Linux
uses: josephbmanley/butler-publish-itchio-action@v1.0.2
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: linux
ITCH_GAME: ${{ env.PROJECT_NAME }}
ITCH_USER: blinry
PACKAGE: build/${{ env.PROJECT_NAME }}-linux.zip
2021-02-05 20:35:03 +01:00
VERSION: ${{ steps.tag_name.outputs.TAG_NAME }}
2020-11-02 18:42:07 +01:00
- name: Deploy macOS
uses: josephbmanley/butler-publish-itchio-action@v1.0.2
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: osx
ITCH_GAME: ${{ env.PROJECT_NAME }}
ITCH_USER: blinry
PACKAGE: build/${{ env.PROJECT_NAME }}-macos.zip
2021-02-05 20:35:03 +01:00
VERSION: ${{ steps.tag_name.outputs.TAG_NAME }}
2020-11-02 18:42:07 +01:00
- name: Deploy Windows
uses: josephbmanley/butler-publish-itchio-action@v1.0.2
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: windows
ITCH_GAME: ${{ env.PROJECT_NAME }}
ITCH_USER: blinry
PACKAGE: build/${{ env.PROJECT_NAME }}-windows.zip
2021-02-05 20:35:03 +01:00
VERSION: ${{ steps.tag_name.outputs.TAG_NAME }}