Skip to content

Commit

Permalink
update workflows because Node.js 16 actions are deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Die4Ever committed Mar 28, 2024
1 parent 19dc2bc commit 93b0df7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/run-tests/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
runs:
using: "composite"
steps:
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
steps:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- run: cd ${{ github.workspace }}

- uses: ./.github/run-tests

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-engine-randomizer.exe
path: dist/build-engine-randomizer.exe
Expand All @@ -27,7 +27,7 @@ jobs:
steps:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- run: cd ${{ github.workspace }}

- run: sudo apt-get update -y
Expand All @@ -36,7 +36,7 @@ jobs:
- uses: ./.github/run-tests

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-engine-randomizer-linux
path: dist/build-engine-randomizer
Expand All @@ -51,15 +51,15 @@ jobs:
steps:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- run: cd ${{ github.workspace }}

- run: brew install python-tk

- uses: ./.github/run-tests

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-engine-randomizer-macos
path: dist/build-engine-randomizer
39 changes: 18 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,20 @@ jobs:
steps:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- run: cd ${{ github.workspace }}

- uses: ./.github/run-tests

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist/build-engine-randomizer.exe
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/build-engine-randomizer.exe
asset_name: build-engine-randomizer.exe
asset_content_type: application/octet-stream
tag: ${{ github.ref }}
overwrite: true

Linux-Release:
runs-on: ubuntu-latest
Expand All @@ -34,7 +33,7 @@ jobs:
steps:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- run: cd ${{ github.workspace }}

- run: sudo apt-get update -y
Expand All @@ -44,14 +43,13 @@ jobs:

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist/build-engine-randomizer
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/build-engine-randomizer
asset_name: build-engine-randomizer-linux
asset_content_type: application/octet-stream
tag: ${{ github.ref }}
overwrite: true

MacOS-Release:
runs-on: macos-latest
Expand All @@ -62,7 +60,7 @@ jobs:
steps:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- run: cd ${{ github.workspace }}

- run: brew install python-tk
Expand All @@ -71,11 +69,10 @@ jobs:

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist/build-engine-randomizer
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/build-engine-randomizer
asset_name: build-engine-randomizer-macos
asset_content_type: application/octet-stream
tag: ${{ github.ref }}
overwrite: true

0 comments on commit 93b0df7

Please sign in to comment.