diff --git a/.github/run-tests/action.yml b/.github/run-tests/action.yml index d9c5489..9186af1 100644 --- a/.github/run-tests/action.yml +++ b/.github/run-tests/action.yml @@ -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 diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 303cf36..fe116fe 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -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 @@ -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 @@ -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 @@ -51,7 +51,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 @@ -59,7 +59,7 @@ jobs: - 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 128275a..c3b1f3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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