Merge pull request #156 from JoelKle/linux-arm64 #74
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: Release | |
on: | |
pull_request: | |
push: | |
tags: | |
- '*' | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Run GoReleaser Validation | |
run: docker run | |
-e GITHUB_TOKEN=${{ secrets.GORELEASER_GITHUB_TOKEN }} | |
-e CGO_ENABLED=1 | |
--rm | |
--privileged | |
-v $GITHUB_WORKSPACE:/go/src/github.com/AndreasSko/go-jwlm | |
-v /var/run/docker.sock:/var/run/docker.sock | |
-w /go/src/github.com/AndreasSko/go-jwlm | |
goreleaser/goreleaser-cross:v1.20 | |
--skip-publish | |
--skip-validate | |
if: ${{ github.event_name == 'pull_request' }} | |
- name: Run GoReleaser Publish | |
run: docker run | |
-e GITHUB_TOKEN=${{ secrets.GORELEASER_GITHUB_TOKEN }} | |
-e CGO_ENABLED=1 | |
--rm | |
--privileged | |
-v $GITHUB_WORKSPACE:/go/src/github.com/AndreasSko/go-jwlm | |
-v /var/run/docker.sock:/var/run/docker.sock | |
-w /go/src/github.com/AndreasSko/go-jwlm | |
goreleaser/goreleaser-cross:v1.20 | |
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} |