-
-
Notifications
You must be signed in to change notification settings - Fork 22
53 lines (50 loc) · 1.94 KB
/
PublishBeatSyncConsole.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
name: Publish
on:
push:
branches: [ master ]
paths:
- 'BeatSyncConsole/**'
- 'BeatSyncPlaylists/**'
- 'BeatSyncLib/**'
- 'Libs/**'
- '.github/workflows/PublishBeatSyncConsole.yml'
pull_request:
branches: [ master ]
paths:
- 'BeatSyncConsole/**'
- 'BeatSyncPlaylists/**'
- 'BeatSyncLib/**'
- '.github/workflows/PublishBeatSyncConsole.yml'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build
run: dotnet build BeatSyncConsole/BeatSyncConsole.csproj --configuration Release
- name: Publish_Win_x64
id: publish-win64
run: dotnet publish BeatSyncConsole/BeatSyncConsole.csproj --configuration Release /p:PublishProfile=win-x64
- name: Publish_Linux_x64
id: publish-linux64
run: dotnet publish BeatSyncConsole/BeatSyncConsole.csproj --configuration Release /p:PublishProfile=linux-x64
- name: Upload Win64 Artifact
uses: actions/upload-artifact@v1
with:
name: ${{ steps.publish-win64.outputs.filename }}
path: ${{ steps.publish-win64.outputs.artifactpath }}
- name: Make Executable
run: chmod -x ${{ steps.publish-linux64.outputs.artifactpath }}BeatSyncConsole/* ; chmod +x ${{ steps.publish-linux64.outputs.artifactpath }}BeatSyncConsole/BeatSyncConsole
- name: Make Tar
run: tar cvf - ${{ steps.publish-linux64.outputs.artifactpath }} | gzip -9 - > ${{ steps.publish-linux64.outputs.artifactpath }}../${{ steps.publish-linux64.outputs.filename }}.tar.gz
- name: Upload Linux64 Artifact
uses: actions/upload-artifact@v1
with:
name: ${{ steps.publish-linux64.outputs.filename }}
path: ${{ steps.publish-linux64.outputs.artifactpath }}../${{ steps.publish-linux64.outputs.filename }}.tar.gz