Skip to content

Commit

Permalink
Update github actions to avoid deprecations.
Browse files Browse the repository at this point in the history
  • Loading branch information
OmniBlade committed Jun 21, 2024
1 parent f4a3cff commit 5bff786
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- name: Create Development release
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/vanilla' }}
uses: "marvinpinto/action-automatic-releases@latest"
uses: "0xDylan/action-auto-releases-n20@v1.1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:

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

- name: Upload tagged release
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.networking == 'net' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
artifact/*
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Restore cache
id: dep-cache
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-dependencies
with:
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:

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

- name: Upload tagged release
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.networking == 'net' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
artifact/*
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:

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

- name: Upload tagged release
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.networking == 'net' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
artifact/*
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- uses: ilammy/msvc-dev-cmd@v1.12.1
- uses: ilammy/msvc-dev-cmd@v1.13.0
with:
arch: x86

- name: Set Git Info
id: gitinfo
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
shell: pwsh
run: |
$gitoutput = git rev-parse --short HEAD
echo "sha_short=${gitoutput}" >> $env:GITHUB_OUTPUT
- name: Install Dependencies
run: |
Expand Down Expand Up @@ -54,7 +57,7 @@ jobs:

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

- name: Upload tagged release
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
artifact/*
Expand All @@ -86,13 +89,16 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- uses: ilammy/msvc-dev-cmd@v1.12.1
- uses: ilammy/msvc-dev-cmd@v1.13.0
with:
arch: ${{ matrix.platform }}

- name: Set Git Info
id: gitinfo
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
shell: pwsh
run: |
$gitoutput = git rev-parse --short HEAD
echo "sha_short=${gitoutput}" >> $env:GITHUB_OUTPUT
- name: Set variables
id: vars
Expand Down Expand Up @@ -152,7 +158,7 @@ jobs:

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

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

0 comments on commit 5bff786

Please sign in to comment.