Skip to content

Commit 5bff786

Browse files
committed
Update github actions to avoid deprecations.
1 parent f4a3cff commit 5bff786

File tree

4 files changed

+22
-16
lines changed

4 files changed

+22
-16
lines changed

.github/workflows/linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- name: Create Development release
1212
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/vanilla' }}
13-
uses: "marvinpinto/action-automatic-releases@latest"
13+
uses: "0xDylan/action-auto-releases[email protected]"
1414
with:
1515
repo_token: "${{ secrets.GITHUB_TOKEN }}"
1616
automatic_release_tag: "latest"
@@ -100,7 +100,7 @@ jobs:
100100

101101
- name: Upload development release
102102
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/vanilla' && matrix.networking == 'net' }}
103-
uses: softprops/action-gh-release@v1
103+
uses: softprops/action-gh-release@v2
104104
with:
105105
name: Development Build
106106
tag_name: "latest"
@@ -112,7 +112,7 @@ jobs:
112112

113113
- name: Upload tagged release
114114
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.networking == 'net' }}
115-
uses: softprops/action-gh-release@v1
115+
uses: softprops/action-gh-release@v2
116116
with:
117117
files: |
118118
artifact/*

.github/workflows/macos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Restore cache
3232
id: dep-cache
33-
uses: actions/cache@v3
33+
uses: actions/cache@v4
3434
env:
3535
cache-name: cache-dependencies
3636
with:
@@ -95,7 +95,7 @@ jobs:
9595

9696
- name: Upload development release
9797
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/vanilla' && matrix.networking == 'net' }}
98-
uses: softprops/action-gh-release@v1
98+
uses: softprops/action-gh-release@v2
9999
with:
100100
name: Development Build
101101
tag_name: "latest"
@@ -107,7 +107,7 @@ jobs:
107107

108108
- name: Upload tagged release
109109
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.networking == 'net' }}
110-
uses: softprops/action-gh-release@v1
110+
uses: softprops/action-gh-release@v2
111111
with:
112112
files: |
113113
artifact/*

.github/workflows/mingw.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126

127127
- name: Upload development release
128128
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/vanilla' && matrix.networking == 'net' }}
129-
uses: softprops/action-gh-release@v1
129+
uses: softprops/action-gh-release@v2
130130
with:
131131
name: Development Build
132132
tag_name: "latest"
@@ -138,7 +138,7 @@ jobs:
138138

139139
- name: Upload tagged release
140140
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.networking == 'net' }}
141-
uses: softprops/action-gh-release@v1
141+
uses: softprops/action-gh-release@v2
142142
with:
143143
files: |
144144
artifact/*

.github/workflows/windows.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ jobs:
1414
fetch-depth: 0
1515
ref: ${{ github.event.pull_request.head.sha }}
1616

17-
- uses: ilammy/msvc-dev-cmd@v1.12.1
17+
- uses: ilammy/msvc-dev-cmd@v1.13.0
1818
with:
1919
arch: x86
2020

2121
- name: Set Git Info
2222
id: gitinfo
23-
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
23+
shell: pwsh
24+
run: |
25+
$gitoutput = git rev-parse --short HEAD
26+
echo "sha_short=${gitoutput}" >> $env:GITHUB_OUTPUT
2427
2528
- name: Install Dependencies
2629
run: |
@@ -54,7 +57,7 @@ jobs:
5457

5558
- name: Upload development release
5659
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/vanilla' }}
57-
uses: softprops/action-gh-release@v1
60+
uses: softprops/action-gh-release@v2
5861
with:
5962
name: Development Build
6063
tag_name: "latest"
@@ -66,7 +69,7 @@ jobs:
6669

6770
- name: Upload tagged release
6871
if: ${{ startsWith(github.ref, 'refs/tags/') }}
69-
uses: softprops/action-gh-release@v1
72+
uses: softprops/action-gh-release@v2
7073
with:
7174
files: |
7275
artifact/*
@@ -86,13 +89,16 @@ jobs:
8689
fetch-depth: 0
8790
ref: ${{ github.event.pull_request.head.sha }}
8891

89-
- uses: ilammy/msvc-dev-cmd@v1.12.1
92+
- uses: ilammy/msvc-dev-cmd@v1.13.0
9093
with:
9194
arch: ${{ matrix.platform }}
9295

9396
- name: Set Git Info
9497
id: gitinfo
95-
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
98+
shell: pwsh
99+
run: |
100+
$gitoutput = git rev-parse --short HEAD
101+
echo "sha_short=${gitoutput}" >> $env:GITHUB_OUTPUT
96102
97103
- name: Set variables
98104
id: vars
@@ -152,7 +158,7 @@ jobs:
152158

153159
- name: Upload development release
154160
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/vanilla' && matrix.networking == 'net' }}
155-
uses: softprops/action-gh-release@v1
161+
uses: softprops/action-gh-release@v2
156162
with:
157163
name: Development Build
158164
tag_name: "latest"
@@ -164,7 +170,7 @@ jobs:
164170

165171
- name: Upload tagged release
166172
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.networking == 'net' }}
167-
uses: softprops/action-gh-release@v1
173+
uses: softprops/action-gh-release@v2
168174
with:
169175
files: |
170176
artifact/*

0 commit comments

Comments
 (0)