Upgrade deprecated GitHub actions

Actions based on Node.js 16 are deprecated. The following must be
upgraded one major version.
    - actions/checkout@v3
    - actions/cache@v3
    - actions/upload-artifact@v3
    - softprops/action-gh-release@v1
This commit is contained in:
Lawrence Lee 2024-06-01 17:15:20 -07:00
parent 1aefd200d8
commit fab4b4f614
No known key found for this signature in database
GPG Key ID: 048FF2B76A63895F
4 changed files with 16 additions and 16 deletions

View File

@ -26,7 +26,7 @@ jobs:
build_type: [release, debug] build_type: [release, debug]
steps: steps:
- name: Checkout source - name: Checkout source
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
@ -150,7 +150,7 @@ jobs:
- name: Restore AppImage tools from cache - name: Restore AppImage tools from cache
id: appimage-tools-cache id: appimage-tools-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
key: appimage-tools-1 key: appimage-tools-1
path: | path: |
@ -203,7 +203,7 @@ jobs:
echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{env.ARTIFACT_NAME}}.AppImage name: ${{env.ARTIFACT_NAME}}.AppImage
path: ${{github.workspace}}/build/${{env.ARTIFACT_NAME}}.AppImage path: ${{github.workspace}}/build/${{env.ARTIFACT_NAME}}.AppImage
@ -225,7 +225,7 @@ jobs:
echo "PUBLISH_NAME=$PUBLISH_NAME" >> $GITHUB_ENV echo "PUBLISH_NAME=$PUBLISH_NAME" >> $GITHUB_ENV
- name: Publish artifacts - name: Publish artifacts
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
if: ${{github.ref_type == 'tag' || github.ref_name == 'dev'}} if: ${{github.ref_type == 'tag' || github.ref_name == 'dev'}}
with: with:
tag_name: nightly-github-actions tag_name: nightly-github-actions
@ -255,7 +255,7 @@ jobs:
echo "PUBLISH_NAME=$PUBLISH_NAME" >> $GITHUB_ENV echo "PUBLISH_NAME=$PUBLISH_NAME" >> $GITHUB_ENV
- name: Publish pre-dev artifacts - name: Publish pre-dev artifacts
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
if: ${{steps.prepare-publish-pre-dev.outcome == 'success'}} if: ${{steps.prepare-publish-pre-dev.outcome == 'success'}}
with: with:
tag_name: pre-dev-github-actions tag_name: pre-dev-github-actions

View File

@ -32,7 +32,7 @@ jobs:
steps: steps:
- name: Checkout source - name: Checkout source
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0

View File

@ -18,7 +18,7 @@ jobs:
build: build:
runs-on: macos-12 runs-on: macos-12
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: | run: |
date -u date -u
@ -97,7 +97,7 @@ jobs:
"ARTIFACT_FILE: ${ARTIFACT_FILE}" \ "ARTIFACT_FILE: ${ARTIFACT_FILE}" \
"PUBLISH_NAME: ${PUBLISH_NAME}" "PUBLISH_NAME: ${PUBLISH_NAME}"
exit exit
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: ${{env.ARTIFACT_FILE}} name: ${{env.ARTIFACT_FILE}}
path: ${{env.ARTIFACT_PATH}} path: ${{env.ARTIFACT_PATH}}
@ -107,7 +107,7 @@ jobs:
zsh -c 'echo "Build completed in $(printf "%0.2f" $(($[$(date +%s)-$(cat build/stamp)]/$((60.))))) minutes"' zsh -c 'echo "Build completed in $(printf "%0.2f" $(($[$(date +%s)-$(cat build/stamp)]/$((60.))))) minutes"'
- name: Publish artifacts - name: Publish artifacts
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
if: ${{github.ref_type == 'tag' || github.ref_name == 'dev'}} if: ${{github.ref_type == 'tag' || github.ref_name == 'dev'}}
with: with:
tag_name: nightly-github-actions tag_name: nightly-github-actions

View File

@ -30,7 +30,7 @@ jobs:
build_type: [release, debug] build_type: [release, debug]
steps: steps:
- name: Checkout source - name: Checkout source
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
@ -189,14 +189,14 @@ jobs:
7z a -tzip "%ARTIFACT_NAME%.zip" "./%ARTIFACT_NAME%" 7z a -tzip "%ARTIFACT_NAME%.zip" "./%ARTIFACT_NAME%"
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{env.ARTIFACT_NAME}} name: ${{env.ARTIFACT_NAME}}
path: build\${{env.ARTIFACT_NAME}} path: build\${{env.ARTIFACT_NAME}}
- name: Upload installer - name: Upload installer
if: ${{matrix.build_type == 'release' && (github.ref_type == 'tag' || github.ref_name == 'dev')}} if: ${{matrix.build_type == 'release' && (github.ref_type == 'tag' || github.ref_name == 'dev')}}
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ${{env.ARTIFACT_NAME}}.exe name: ${{env.ARTIFACT_NAME}}.exe
path: build\${{env.ARTIFACT_NAME}}.exe path: build\${{env.ARTIFACT_NAME}}.exe
@ -222,7 +222,7 @@ jobs:
echo "PUBLISH_NAME=$PUBLISH_NAME" >> "$(cygpath -u $GITHUB_ENV)" echo "PUBLISH_NAME=$PUBLISH_NAME" >> "$(cygpath -u $GITHUB_ENV)"
- name: Publish artifacts - name: Publish artifacts
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
if: ${{github.ref_type == 'tag' || github.ref_name == 'dev'}} if: ${{github.ref_type == 'tag' || github.ref_name == 'dev'}}
with: with:
tag_name: nightly-github-actions tag_name: nightly-github-actions
@ -231,7 +231,7 @@ jobs:
build/${{env.PUBLISH_NAME}}-AboutThisBuild.txt build/${{env.PUBLISH_NAME}}-AboutThisBuild.txt
- name: Publish installer - name: Publish installer
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
if: ${{matrix.build_type == 'release' && (github.ref_type == 'tag' || github.ref_name == 'dev')}} if: ${{matrix.build_type == 'release' && (github.ref_type == 'tag' || github.ref_name == 'dev')}}
with: with:
tag_name: nightly-github-actions tag_name: nightly-github-actions
@ -263,7 +263,7 @@ jobs:
echo "PUBLISH_NAME=$PUBLISH_NAME" >> "$(cygpath -u $GITHUB_ENV)" echo "PUBLISH_NAME=$PUBLISH_NAME" >> "$(cygpath -u $GITHUB_ENV)"
- name: Publish pre-dev artifacts - name: Publish pre-dev artifacts
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
if: ${{steps.prepare-publish-pre-dev.outcome == 'success'}} if: ${{steps.prepare-publish-pre-dev.outcome == 'success'}}
with: with:
tag_name: pre-dev-github-actions tag_name: pre-dev-github-actions
@ -272,7 +272,7 @@ jobs:
build/${{env.PUBLISH_NAME}}-AboutThisBuild.txt build/${{env.PUBLISH_NAME}}-AboutThisBuild.txt
- name: Publish pre-dev installer - name: Publish pre-dev installer
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
if: ${{steps.prepare-publish-pre-dev.outcome == 'success' && matrix.build_type == 'release'}} if: ${{steps.prepare-publish-pre-dev.outcome == 'success' && matrix.build_type == 'release'}}
with: with:
tag_name: pre-dev-github-actions tag_name: pre-dev-github-actions