diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..2bc1fbf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,48 @@ +name: goreleaser + +on: + pull_request: + push: + tags: + - "*" + +permissions: + contents: write + packages: write + issues: write + id-token: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.23' + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to CR + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: "v2.3.1" + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 59d91ad..14e0b3e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -22,11 +22,11 @@ checksum: snapshot: name_template: "{{ .Tag }}-next" -blobs: - - provider: s3 - bucket: downloads.scylladb.com - region: us-east-1 - folder: "gemini/{{.Version}}" +# blobs: +# - provider: s3 +# bucket: downloads.scylladb.com +# region: us-east-1 +# folder: "gemini/{{.Version}}" changelog: sort: asc