-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (66 loc) · 2.43 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Release to itch.io
on:
push:
tags:
- 'v*'
env:
ITCH_USER_NAME: apos
ITCH_GAME_NAME: projectcore
PROJECT_PATH: Platforms/DesktopGL
jobs:
build:
runs-on: ubuntu-20.04
env:
MGFXC_WINE_PATH: /home/runner/.winemonogame
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Get version from tag
run: |
TAGVERSION=$(git describe --tags --abbrev=0)
echo "TAGVERSION=${TAGVERSION:1}" >> $GITHUB_ENV
- name: Setup Wine
run: |
sudo apt update
sudo apt install wine64 p7zip-full
wget -qO- https://raw.githubusercontent.com/MonoGame/MonoGame/develop/Tools/MonoGame.Effect.Compiler/mgfxc_wine_setup.sh | sh
- name: Build Windows
run: dotnet publish ${{ env.PROJECT_PATH }} -r win-x64 -c Release --output artifacts/windows --self-contained -p:Version=${{ env.TAGVERSION }}
- name: Build Osx
run: dotnet publish ${{ env.PROJECT_PATH }} -r osx-x64 -c Release --output artifacts/osx --self-contained -p:Version=${{ env.TAGVERSION }}
- name: Build Linux
run: dotnet publish ${{ env.PROJECT_PATH }} -r linux-x64 -c Release --output artifacts/linux --self-contained -p:Version=${{ env.TAGVERSION }}
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Publish Windows build to itch.io
uses: josephbmanley/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
CHANNEL: windows
ITCH_GAME: ${{ env.ITCH_GAME_NAME }}
ITCH_USER: ${{ env.ITCH_USER_NAME }}
PACKAGE: artifacts/windows
VERSION: ${{ env.TAGVERSION }}
- name: Publish OSX build to itch.io
uses: josephbmanley/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
CHANNEL: osx
ITCH_GAME: ${{ env.ITCH_GAME_NAME }}
ITCH_USER: ${{ env.ITCH_USER_NAME }}
PACKAGE: artifacts/osx
VERSION: ${{ env.TAGVERSION }}
- name: Publish Linux build to itch.io
uses: josephbmanley/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
CHANNEL: linux
ITCH_GAME: ${{ env.ITCH_GAME_NAME }}
ITCH_USER: ${{ env.ITCH_USER_NAME }}
PACKAGE: artifacts/linux
VERSION: ${{ env.TAGVERSION }}