Skip to content

Commit

Permalink
Merge pull request #114 from gliderlabs/fix-name-in-release
Browse files Browse the repository at this point in the history
feat: use repository slug instead of repository name when copying files over for a release
  • Loading branch information
josegonzalez authored May 19, 2024
2 parents 4629720 + 63f566e commit fd1a927
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
id: repo-name
run: |
echo "REPOSITORY_NAME=$(echo "${{ github.repository }}" | cut -d '/' -f 2)" >> $GITHUB_OUTPUT
echo "REPOSITORY_SLUG=$(echo "${{ github.repository }}" | sed 's#/#-#')" >> $GITHUB_OUTPUT
- name: Build binaries
uses: crazy-max/ghaction-xgo@v3
Expand Down Expand Up @@ -80,11 +81,11 @@ jobs:
run: |
mkdir -p build/linux
cp dist/${{ steps.repo-name.outputs.REPOSITORY_NAME }}-linux-amd64 build/linux/${{ github.repository }}-amd64
cp dist/${{ steps.repo-name.outputs.REPOSITORY_NAME }}-linux-arm64 build/linux/${{ github.repository }}-arm64
cp dist/${{ steps.repo-name.outputs.REPOSITORY_NAME }}-linux-amd64 build/linux/${{ steps.repo-name.outputs.REPOSITORY_SLUG }}-amd64
cp dist/${{ steps.repo-name.outputs.REPOSITORY_NAME }}-linux-arm64 build/linux/${{ steps.repo-name.outputs.REPOSITORY_SLUG }}-arm64
bundle exec make build/deb/${{ github.repository }}_${{ github.ref_name }}_arm64.deb
bundle exec make build/deb/${{ github.repository }}_${{ github.ref_name }}_amd64.deb
bundle exec make build/deb/${{ steps.repo-name.outputs.REPOSITORY_SLUG }}_${{ github.ref_name }}_arm64.deb
bundle exec make build/deb/${{ steps.repo-name.outputs.REPOSITORY_SLUG }}_${{ github.ref_name }}_amd64.deb
cp build/deb/*.deb dist/
env:
BUNDLE_GEMFILE: .github/Gemfile
Expand Down

0 comments on commit fd1a927

Please sign in to comment.