name: Release on: push: tags: - v* jobs: goreleaser: runs-on: ubuntu-latest defaults: run: shell: bash steps: - name: Checkout code uses: actions/checkout@v2 with: fetch-depth: 0 - name: Install Go uses: actions/setup-go@v2 with: go-version: 1.16 - name: Configure AWS cli uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.DAGGERCI_TOKEN }}