diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f39853568..a3366d85e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -149,14 +149,12 @@ jobs: tar czvf ../../../railway-${{ needs.create-release.outputs.railway_version }}-${{ matrix.target }}.tar.gz railway cd - - - name: Upload release archive - uses: softprops/action-gh-release@v2 + - name: Upload release asset env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ needs.create-release.outputs.railway_version }} - draft: true - files: railway-${{ needs.create-release.outputs.railway_version }}-${{ matrix.target }}* + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + run: | + gh release upload ${{ needs.create-release.outputs.railway_version }} railway-${{ needs.create-release.outputs.railway_version }}-${{ matrix.target }}* - name: Install musl-tools if: matrix.target == 'x86_64-unknown-linux-musl' @@ -172,21 +170,8 @@ jobs: - name: Upload .deb package file if: matrix.target == 'x86_64-unknown-linux-musl' - uses: svenstaro/upload-release-action@v2 - with: - tag: ${{ needs.create-release.outputs.railway_version }} - file: railway-${{ needs.create-release.outputs.railway_version }}-amd64.deb - - - name: Update homebrew tap - uses: mislav/bump-homebrew-formula-action@v2 - if: "matrix.target == 'x86_64-apple-darwin' || matrix.target == 'aarch64-apple-darwin' && !contains(github.ref, '-')" - with: - formula-name: rlwy - formula-path: rlwy.rb - homebrew-tap: railwayapp/homebrew-tap - download-url: https://github.com/railwayapp/cli/releases/latest/download/railway-${{ needs.create-release.outputs.railway_version }}-${{ matrix.target }}.tar.gz - env: - COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }} + run: | + gh release upload ${{ needs.create-release.outputs.railway_version }} railway-${{ needs.create-release.outputs.railway_version }}-amd64.deb publish-release: name: Publish Release @@ -195,13 +180,10 @@ jobs: steps: - name: Publish Release - id: publish_release - uses: softprops/action-gh-release@v2 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ needs.create-release.outputs.railway_version }} - draft: false + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + run: gh release edit "${{ needs.create-release.outputs.railway_version }}" --draft=false notify-release: name: Notify Release