Build PartyHall #56
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build PartyHall | |
on: | |
create: | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: docker run -v $PWD:/app oxodao/oxbuilder:n20g21 bash -c "cd /app/gui && npm i && npm run build" | |
- run: docker run -e APP_VERSION="${GITHUB_REF##*/}" -e COMMIT_HASH="${GITHUB_SHA}" -v $PWD:/app oxodao/oxbuilder:n20g21 bash -c 'cd /app && CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -buildvcs=false -ldflags="-X github.com/partyhall/partyhall/utils.CURRENT_VERSION=${APP_VERSION} -X github.com/partyhall/partyhall/utils.CURRENT_COMMIT=${COMMIT_HASH}" -o partyhall-${APP_VERSION}-linux-amd64 .' | |
#- run: docker run -e APP_VERSION="${GITHUB_REF##*/}" -e COMMIT_HASH="${GITHUB_SHA}" -v $PWD:/app oxodao/oxbuilder:n20g21 bash -c 'cd /app && CGO_ENABLED=1 GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc go build -buildvcs=false -ldflags="-X github.com/partyhall/partyhall/utils.CURRENT_VERSION=${APP_VERSION} -X github.com/partyhall/partyhall/utils.CURRENT_COMMIT=${COMMIT_HASH}" -o partyhall-${APP_VERSION}-linux-arm64 .' | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "partyhall-*-*-*" | |
token: ${{ secrets.GITHUB_TOKEN }} |