diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e1e2c9..94467da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: goreleaser on: push: tags: - - "v*" # Will trigger only if tag is pushed matching pattern `v*` (Eg: `v0.1.0`) + - "v*" jobs: goreleaser: @@ -19,16 +19,17 @@ jobs: with: go-version: 1.17 - - name: Login to Docker Registry + - name: Login to GitHub Container Registry uses: docker/login-action@v1 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: version: latest - args: --parallelism 1 --rm-dist --skip-validate + args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}