Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github actions to avoid deprecations. #1011

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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[email protected]"
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