From 8eb682fadec15c3781dff85a278f44bd3fed41f5 Mon Sep 17 00:00:00 2001 From: Karan Sharma Date: Fri, 18 Feb 2022 22:42:02 +0530 Subject: [PATCH] ci: add github actions --- .github/workflows/release.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 }}