github.com/hellofresh/janus@v0.0.0-20230925145208-ce8de8183c67/.github/workflows/release.yml (about) 1 name: Release 2 3 on: 4 release: 5 types: 6 - created 7 8 jobs: 9 goreleaser: 10 runs-on: ubuntu-latest 11 12 steps: 13 - name: Check out code 14 uses: actions/checkout@v2 15 - name: Docker Login 16 if: success() && startsWith(github.ref, 'refs/tags/') 17 env: 18 DOCKER_USERNAME: hellofreshtech 19 DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} 20 run: | 21 echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin 22 - name: Run GoReleaser 23 uses: goreleaser/goreleaser-action@v2 24 if: success() && startsWith(github.ref, 'refs/tags/') 25 with: 26 args: release --rm-dist 27 env: 28 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}