github.com/lbryio/lbcd@v0.22.119/.github/workflows/release.yml (about) 1 name: goreleaser 2 3 on: 4 workflow_dispatch: 5 inputs: 6 note: 7 description: 'Note' 8 required: false 9 default: '' 10 pull_request: 11 push: 12 tags: 13 - '*' 14 15 permissions: 16 contents: write 17 18 jobs: 19 goreleaser: 20 runs-on: ubuntu-latest 21 steps: 22 - 23 name: Checkout 24 uses: actions/checkout@v2 25 with: 26 fetch-depth: 0 27 - 28 name: Set up Go 29 uses: actions/setup-go@v2 30 with: 31 go-version: 1.19 32 33 # Login against a Docker registry except on PR 34 # https://github.com/docker/login-action 35 - name: Log into registry docker.io 36 if: github.event_name != 'pull_request' 37 uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c 38 with: 39 username: ${{ secrets.DOCKER_HUB_USERNAME }} 40 password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} 41 - 42 name: Run GoReleaser 43 uses: goreleaser/goreleaser-action@v2 44 with: 45 distribution: goreleaser 46 version: latest 47 args: release --rm-dist 48 env: 49 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 50 - 51 name: Upload artifacts 52 uses: actions/upload-artifact@v2 53 with: 54 name: lbcd-${{ github.sha }} 55 path: | 56 dist/checksums.txt 57 dist/*.tar.gz