name: goreleaser on: push: tags: - 'fleet-*' permissions: contents: read jobs: goreleaser: runs-on: ubuntu-latest environment: Docker Hub permissions: contents: write steps: - name: Checkout uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 with: fetch-depth: 0 # Needed for goreleaser - name: Login to Docker Hub uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # v1.10.0 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} - name: Set up Go uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # v2 with: go-version: 1.17.8 - name: Install JS Dependencies run: make deps-js - name: Install Go Dependencies run: make deps-go - name: Run GoReleaser uses: goreleaser/goreleaser-action@68acf3b1adf004ac9c2f0a4259e85c5f66e99bef with: distribution: goreleaser-pro version: latest args: release --rm-dist -f .goreleaser.yml env: GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}