Skip to content

Commit f406b33

Browse files
committed
Edit workflows to push preview and preview-old versions
1 parent 2e28809 commit f406b33

4 files changed

+70
-4
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: RocketModFix.Unturned.Redist.Client-Preview-Old
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Update Unturned Redist for Client Preview Old"]
6+
types:
7+
- completed
8+
push:
9+
branches: [ master ]
10+
paths:
11+
- 'redist/redist-client-preview-old/**'
12+
13+
jobs:
14+
build:
15+
name: "RocketModFix.Unturned.Redist Pack for Client Preview Old"
16+
runs-on: ubuntu-22.04
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- uses: nuget/setup-nuget@v2
23+
name: Setup NuGet
24+
with:
25+
nuget-api-key: ${{ secrets.NUGET_DEPLOY_KEY }}
26+
27+
- uses: ./.github/actions/nuget-pack
28+
id: nuget-pack
29+
with:
30+
nuspec_path: redist/redist-client-preview-old/RocketModFix.Unturned.Redist.Client-Preview.nuspec
31+
nuget_key: ${{ secrets.NUGET_DEPLOY_KEY }}
32+
nuget_push: true
33+

.github/workflows/RocketModFix.Unturned.Redist.Client-Preview.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
push:
99
branches: [ master ]
1010
paths:
11-
- 'redist/redist-client-preview-old/**'
11+
- 'redist/redist-client-preview/**'
1212

1313
jobs:
1414
build:
@@ -27,7 +27,7 @@ jobs:
2727
- uses: ./.github/actions/nuget-pack
2828
id: nuget-pack
2929
with:
30-
nuspec_path: redist/redist-client-preview-old/RocketModFix.Unturned.Redist.Client-Preview.nuspec
30+
nuspec_path: redist/redist-client-preview/RocketModFix.Unturned.Redist.Client-Preview.nuspec
3131
nuget_key: ${{ secrets.NUGET_DEPLOY_KEY }}
3232
nuget_push: true
3333

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: RocketModFix.Unturned.Redist.Server-Preview-Old
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Update Unturned Redist for Server Preview Old"]
6+
types:
7+
- completed
8+
push:
9+
branches: [ master ]
10+
paths:
11+
- 'redist/redist-server-preview-old/**'
12+
13+
jobs:
14+
build:
15+
name: "RocketModFix.Unturned.Redist Pack for Server Preview Old"
16+
runs-on: ubuntu-22.04
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- uses: nuget/setup-nuget@v2
23+
name: Setup NuGet
24+
with:
25+
nuget-api-key: ${{ secrets.NUGET_DEPLOY_KEY }}
26+
27+
- uses: ./.github/actions/nuget-pack
28+
id: nuget-pack
29+
with:
30+
nuspec_path: redist/redist-server-preview-old/RocketModFix.Unturned.Redist.Server-Preview.nuspec
31+
nuget_key: ${{ secrets.NUGET_DEPLOY_KEY }}
32+
nuget_push: true
33+

.github/workflows/RocketModFix.Unturned.Redist.Server-Preview.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
push:
99
branches: [ master ]
1010
paths:
11-
- 'redist/redist-server-preview-old/**'
11+
- 'redist/redist-server-preview/**'
1212

1313
jobs:
1414
build:
@@ -27,7 +27,7 @@ jobs:
2727
- uses: ./.github/actions/nuget-pack
2828
id: nuget-pack
2929
with:
30-
nuspec_path: redist/redist-server-preview-old/RocketModFix.Unturned.Redist.Server-Preview.nuspec
30+
nuspec_path: redist/redist-server-preview/RocketModFix.Unturned.Redist.Server-Preview.nuspec
3131
nuget_key: ${{ secrets.NUGET_DEPLOY_KEY }}
3232
nuget_push: true
3333

0 commit comments

Comments
 (0)