diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 66de39d..f37c360 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,28 +9,26 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0` - - - name: Set up Go + submodules: 'true' + - run: git fetch --prune --unshallow + - name: Set up Go uses: actions/setup-go@v2 with: go-version: ^1.15 - - - name: Login to GitHub Container Registry + - name: Login to GitHub Container Registry uses: docker/login-action@v1 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 - with: - version: latest - args: release --rm-dist - env: - GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GH_TOKEN }} + - name: release dry run + run: make release-dry-run + - name: setup release environment + run: |- + echo 'GITHUB_TOKEN=${{secrets.HOMEBREW_TAP_GH_TOKEN}}' > .release-env + - name: release publish + run: make release