Updated Github actions yml to fix Node.js 12 deprecation

Several actions have been updated to avoid the Node.js 12 deprecation:
  actions/checkout
  actions/setup-python
  mad9000/actions-find-and-replace-string
  actions/upload-artifact
  actions/download-artifact
This commit is contained in:
Joe Lyga
2022-11-13 16:25:21 -05:00
parent 4ab0a40c45
commit 10677b4bf1

View File

@@ -32,10 +32,10 @@ jobs:
steps: steps:
# checkout commit # checkout commit
- name: Checkout commit - name: Checkout commit
uses: actions/checkout@v2 uses: actions/checkout@v3
# install python # install python
- name: Install python - name: Install python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: "x64" architecture: "x64"
@@ -50,21 +50,21 @@ jobs:
pip install pyinstaller pip install pyinstaller
# get parent directory # get parent directory
- name: Get Repo Name - name: Get Repo Name
uses: mad9000/actions-find-and-replace-string@1 uses: mad9000/actions-find-and-replace-string@3
id: repoName id: repoName
with: with:
source: ${{ github.repository }} source: ${{ github.repository }}
find: '${{ github.repository_owner }}/' find: '${{ github.repository_owner }}/'
replace: '' replace: ''
- name: Get Parent Directory Path (!Windows) - name: Get Parent Directory Path (!Windows)
uses: mad9000/actions-find-and-replace-string@1 uses: mad9000/actions-find-and-replace-string@3
id: parentDirNotWin id: parentDirNotWin
with: with:
source: ${{ github.workspace }} source: ${{ github.workspace }}
find: '${{ steps.repoName.outputs.value }}/${{ steps.repoName.outputs.value }}' find: '${{ steps.repoName.outputs.value }}/${{ steps.repoName.outputs.value }}'
replace: ${{ steps.repoName.outputs.value }} replace: ${{ steps.repoName.outputs.value }}
- name: Get Parent Directory Path (Windows) - name: Get Parent Directory Path (Windows)
uses: mad9000/actions-find-and-replace-string@1 uses: mad9000/actions-find-and-replace-string@3
id: parentDir id: parentDir
with: with:
source: ${{ steps.parentDirNotWin.outputs.value }} source: ${{ steps.parentDirNotWin.outputs.value }}
@@ -92,7 +92,7 @@ jobs:
python ./resources/ci/common/prepare_binary.py python ./resources/ci/common/prepare_binary.py
# upload binary artifacts for later step # upload binary artifacts for later step
- name: Upload Binary Artifacts - name: Upload Binary Artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: binaries-${{ matrix.os-name }} name: binaries-${{ matrix.os-name }}
path: ${{ steps.parentDir.outputs.value }}/artifact path: ${{ steps.parentDir.outputs.value }}/artifact
@@ -117,10 +117,10 @@ jobs:
steps: steps:
# checkout commit # checkout commit
- name: Checkout commit - name: Checkout commit
uses: actions/checkout@v2 uses: actions/checkout@v3
# install python # install python
- name: Install Python - name: Install Python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: "x64" architecture: "x64"
@@ -134,21 +134,21 @@ jobs:
python ./resources/ci/common/install.py python ./resources/ci/common/install.py
# get parent directory # get parent directory
- name: Get Repo Name - name: Get Repo Name
uses: mad9000/actions-find-and-replace-string@1 uses: mad9000/actions-find-and-replace-string@3
id: repoName id: repoName
with: with:
source: ${{ github.repository }} source: ${{ github.repository }}
find: '${{ github.repository_owner }}/' find: '${{ github.repository_owner }}/'
replace: '' replace: ''
- name: Get Parent Directory Path (!Windows) - name: Get Parent Directory Path (!Windows)
uses: mad9000/actions-find-and-replace-string@1 uses: mad9000/actions-find-and-replace-string@3
id: parentDirNotWin id: parentDirNotWin
with: with:
source: ${{ github.workspace }} source: ${{ github.workspace }}
find: '${{ steps.repoName.outputs.value }}/${{ steps.repoName.outputs.value }}' find: '${{ steps.repoName.outputs.value }}/${{ steps.repoName.outputs.value }}'
replace: ${{ steps.repoName.outputs.value }} replace: ${{ steps.repoName.outputs.value }}
- name: Get Parent Directory Path (Windows) - name: Get Parent Directory Path (Windows)
uses: mad9000/actions-find-and-replace-string@1 uses: mad9000/actions-find-and-replace-string@3
id: parentDir id: parentDir
with: with:
source: ${{ steps.parentDirNotWin.outputs.value }} source: ${{ steps.parentDirNotWin.outputs.value }}
@@ -156,7 +156,7 @@ jobs:
replace: ${{ steps.repoName.outputs.value }} replace: ${{ steps.repoName.outputs.value }}
# download binary artifact # download binary artifact
- name: Download Binary Artifact - name: Download Binary Artifact
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: binaries-${{ matrix.os-name }} name: binaries-${{ matrix.os-name }}
path: ./ path: ./
@@ -170,13 +170,13 @@ jobs:
python ./resources/ci/common/prepare_release.py python ./resources/ci/common/prepare_release.py
# upload appversion artifact for later step # upload appversion artifact for later step
- name: Upload AppVersion Artifact - name: Upload AppVersion Artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: appversion-${{ matrix.os-name }} name: appversion-${{ matrix.os-name }}
path: ./resources/app/meta/manifests/app_version.txt path: ./resources/app/meta/manifests/app_version.txt
# upload archive artifact for later step # upload archive artifact for later step
- name: Upload Archive Artifact - name: Upload Archive Artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: archive-${{ matrix.os-name }} name: archive-${{ matrix.os-name }}
path: ${{ steps.parentDir.outputs.value }}/deploy path: ${{ steps.parentDir.outputs.value }}/deploy
@@ -202,24 +202,24 @@ jobs:
steps: steps:
# checkout commit # checkout commit
- name: Checkout commit - name: Checkout commit
uses: actions/checkout@v2 uses: actions/checkout@v3
# get parent directory # get parent directory
- name: Get Repo Name - name: Get Repo Name
uses: mad9000/actions-find-and-replace-string@1 uses: mad9000/actions-find-and-replace-string@3
id: repoName id: repoName
with: with:
source: ${{ github.repository }} source: ${{ github.repository }}
find: '${{ github.repository_owner }}/' find: '${{ github.repository_owner }}/'
replace: '' replace: ''
- name: Get Parent Directory Path (!Windows) - name: Get Parent Directory Path (!Windows)
uses: mad9000/actions-find-and-replace-string@1 uses: mad9000/actions-find-and-replace-string@3
id: parentDirNotWin id: parentDirNotWin
with: with:
source: ${{ github.workspace }} source: ${{ github.workspace }}
find: '${{ steps.repoName.outputs.value }}/${{ steps.repoName.outputs.value }}' find: '${{ steps.repoName.outputs.value }}/${{ steps.repoName.outputs.value }}'
replace: ${{ steps.repoName.outputs.value }} replace: ${{ steps.repoName.outputs.value }}
- name: Get Parent Directory Path (Windows) - name: Get Parent Directory Path (Windows)
uses: mad9000/actions-find-and-replace-string@1 uses: mad9000/actions-find-and-replace-string@3
id: parentDir id: parentDir
with: with:
source: ${{ steps.parentDirNotWin.outputs.value }} source: ${{ steps.parentDirNotWin.outputs.value }}
@@ -230,25 +230,25 @@ jobs:
python -m pip install pytz requests python -m pip install pytz requests
# download appversion artifact # download appversion artifact
- name: Download AppVersion Artifact - name: Download AppVersion Artifact
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: appversion-${{ matrix.os-name }} name: appversion-${{ matrix.os-name }}
path: ${{ steps.parentDir.outputs.value }}/build path: ${{ steps.parentDir.outputs.value }}/build
# download ubuntu archive artifact # download ubuntu archive artifact
- name: Download Ubuntu Archive Artifact - name: Download Ubuntu Archive Artifact
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: archive-ubuntu-latest name: archive-ubuntu-latest
path: ${{ steps.parentDir.outputs.value }}/deploy/linux path: ${{ steps.parentDir.outputs.value }}/deploy/linux
# download macos archive artifact # download macos archive artifact
- name: Download MacOS Archive Artifact - name: Download MacOS Archive Artifact
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: archive-macOS-latest name: archive-macOS-latest
path: ${{ steps.parentDir.outputs.value }}/deploy/macos path: ${{ steps.parentDir.outputs.value }}/deploy/macos
# download windows archive artifact # download windows archive artifact
- name: Download Windows Archive Artifact - name: Download Windows Archive Artifact
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: archive-windows-latest name: archive-windows-latest
path: ${{ steps.parentDir.outputs.value }}/deploy/windows path: ${{ steps.parentDir.outputs.value }}/deploy/windows