From 652774e37c2a025b0704ab79fd70b08df8dedfe4 Mon Sep 17 00:00:00 2001 From: Pavel Penev Date: Mon, 31 Mar 2025 02:54:56 +0300 Subject: [PATCH] Avoid a third-party GH Actions OpenRA PR 21805. --- .github/workflows/packaging.yml | 36 ++++++++++++++------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index d7d4167..2d16803 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -32,13 +32,11 @@ jobs: ./packaging/linux/buildpackage.sh "${GIT_TAG}" "${PWD}/build/linux" - name: Upload Packages - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ github.ref }} - overwrite: true - file_glob: true - file: build/linux/* + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: | + gh release upload ${{ github.ref_name }} build/linux/* macos: name: macOS Disk Image @@ -68,13 +66,11 @@ jobs: ./packaging/macos/buildpackage.sh "${GIT_TAG}" "${PWD}/build/macos" - name: Upload Package - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ github.ref }} - overwrite: true - file_glob: true - file: build/macos/* + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: | + gh release upload ${{ github.ref_name }} build/macos/* windows: name: Windows Installers @@ -101,10 +97,8 @@ jobs: ./packaging/windows/buildpackage.sh "${GIT_TAG}" "${PWD}/build/windows" - name: Upload Packages - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ github.ref }} - overwrite: true - file_glob: true - file: build/windows/* + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: | + gh release upload ${{ github.ref_name }} build/windows/*