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@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 # v1.10.0 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} - name: Set up Go uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # 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@b953231f81b8dfd023c58e0854a721e35037f28b with: distribution: goreleaser-pro version: latest args: release --rm-dist -f .goreleaser.yml env: GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}