From 95644230ebaee10da27393ad9726040625fd2580 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Wed, 10 Jul 2024 10:07:35 -0400 Subject: [PATCH] feat(ci): use goreleaser for releases (#301) * feat(ci): use goreleaser for releases This will publish and announce releases on tag push. * chore: remove announce --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ .goreleaser.yml | 5 +++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .goreleaser.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..f649dfde --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: goreleaser + +on: + push: + tags: + - v*.*.* + +concurrency: + group: goreleaser + cancel-in-progress: true + +jobs: + goreleaser: + uses: charmbracelet/meta/.github/workflows/goreleaser.yml@main + secrets: + docker_username: ${{ secrets.DOCKERHUB_USERNAME }} + docker_token: ${{ secrets.DOCKERHUB_TOKEN }} + gh_pat: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + goreleaser_key: ${{ secrets.GORELEASER_KEY }} + twitter_consumer_key: ${{ secrets.TWITTER_CONSUMER_KEY }} + twitter_consumer_secret: ${{ secrets.TWITTER_CONSUMER_SECRET }} + twitter_access_token: ${{ secrets.TWITTER_ACCESS_TOKEN }} + twitter_access_token_secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} + mastodon_client_id: ${{ secrets.MASTODON_CLIENT_ID }} + mastodon_client_secret: ${{ secrets.MASTODON_CLIENT_SECRET }} + mastodon_access_token: ${{ secrets.MASTODON_ACCESS_TOKEN }} + discord_webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }} + discord_webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 00000000..c61970e0 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,5 @@ +includes: + - from_url: + url: charmbracelet/meta/main/goreleaser-lib.yaml +# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json +