forked from SmartlyDressedGames/Legally-Distinct-Missile
-
Notifications
You must be signed in to change notification settings - Fork 8
108 lines (93 loc) · 3.32 KB
/
Copy pathRocketModFix.yaml
File metadata and controls
108 lines (93 loc) · 3.32 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: RocketModFix
on:
create:
tags:
- "*"
push:
branches: [ master ]
paths:
- '.github/workflows/RocketModFix.yaml'
- 'Rocket.AutoInstaller/**'
- 'Rocket/**'
- 'Rocket.Unturned/**'
pull_request:
paths:
- '.github/workflows/RocketModFix.yaml'
- 'Rocket.AutoInstaller/**'
- 'Rocket/**'
- 'Rocket.Unturned/**'
jobs:
Compatibility-Check:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v6
name: Setup .NET
with:
dotnet-version: 8.x
- name: Check compatibility with original repository
uses: ./.github/actions/compatibility-check
with:
fail-on-breaking-changes: true
Build:
runs-on: ubuntu-latest
needs: Compatibility-Check
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v6
name: Setup .NET
with:
dotnet-version: 8.x
- name: Build Rocket.AutoInstaller
uses: ./.github/actions/project-build
id: auto-installer-build
with:
project_path: Rocket.AutoInstaller
nuget_key: ${{ secrets.NUGET_DEPLOY_KEY }}
nuget_push: false
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Rocket.Unturned.Module
uses: ./.github/actions/project-build
id: unturned-module-build
with:
project_path: Rocket.Unturned
nuget_key: ${{ secrets.NUGET_DEPLOY_KEY }}
nuget_push: false
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Rocket.AutoInstaller
uses: actions/upload-artifact@v7
with:
name: Rocket.AutoInstaller
path: "./Rocket.AutoInstaller/bin/Release/net461/linux-x64/Rocket.AutoInstaller/"
if-no-files-found: error
- name: Upload Rocket.Unturned.Module
uses: actions/upload-artifact@v7
with:
name: Rocket.Unturned.Module
path: "./Rocket.Unturned/bin/Release/net461/linux-x64/Rocket.Unturned/"
if-no-files-found: error
- name: Zip Rocket.AutoInstaller artifacts
run: "cd ./Rocket.AutoInstaller/bin/Release/net461/linux-x64/Rocket.AutoInstaller && zip -qq -r ./Rocket.AutoInstaller.zip *"
- name: Zip Rocket.Unturned artifacts
run: "cd ./Rocket.Unturned/bin/Release/net461/linux-x64/Rocket.Unturned && zip -qq -r ./Rocket.Unturned.Module.zip *"
- name: Create Release
if: github.event_name == 'create' && github.event.ref_type == 'tag'
uses: ncipollo/release-action@v1.21.0
with:
name: RocketModFix Release v${{ steps.auto-installer-build.outputs.version }}
tag: ${{ steps.auto-installer-build.outputs.version }}
artifacts: |
./Rocket.AutoInstaller/bin/Release/net461/linux-x64/Rocket.AutoInstaller/Rocket.AutoInstaller.zip
./Rocket.Unturned/bin/Release/net461/linux-x64/Rocket.Unturned/Rocket.Unturned.Module.zip
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ${{ steps.auto-installer-build.outputs.is_prerelease }}
allowUpdates: true
draft: true