Skip to content

Commit

Permalink
fix asset releases (#567)
Browse files Browse the repository at this point in the history
* fix asset releases

* add quotes around version
  • Loading branch information
coffee-cup authored Oct 22, 2024
1 parent f16c4ba commit e800e06
Showing 1 changed file with 10 additions and 28 deletions.
38 changes: 10 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e800e06

Please sign in to comment.