From b8a597199c14cfd27b19980a311a1e81d8d331ab Mon Sep 17 00:00:00 2001 From: Sam Coe Date: Thu, 18 Nov 2021 15:48:17 -0800 Subject: [PATCH] Migrate to cli release workflow --- .github/workflows/release.yml | 25 +++++++++--------------- .goreleaser.yml | 36 ----------------------------------- 2 files changed, 9 insertions(+), 52 deletions(-) delete mode 100644 .goreleaser.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12487b8..dcb27c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,24 +1,22 @@ -name: goreleaser +name: release on: push: tags: - "v*" +permissions: + contents: write + jobs: - goreleaser: + release: runs-on: ubuntu-latest steps: - - name: Checkout + name: Checkout code uses: actions/checkout@v2 with: fetch-depth: 0 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.16 - name: Import GPG key id: import_gpg @@ -27,12 +25,7 @@ jobs: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.GPG_PASSPHRASE }} - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + name: Create release + uses: cli/gh-extension-precompile@v1 with: - distribution: goreleaser - version: latest - args: release --rm-dist - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} + gpg_fingerprint: ${{ steps.import_gpg.outputs.fingerprint }} diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index d00de6e..0000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,36 +0,0 @@ -project_name: gh-repo-explore -before: - hooks: - - go mod tidy -builds: - - env: - - CGO_ENABLED=0 - ldflags: - - -s -w - goos: - - darwin - - linux - - windows - goarch: - - 386 - - amd64 -archives: - - format: binary - name_template: "{{ .Binary }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}" -checksum: - disable: false -signs: - - artifacts: checksum - args: [ - "--batch", - "-u", - "{{ .Env.GPG_FINGERPRINT }}", - "--output", - "${signature}", - "--detach-sign", - "${artifact}" - ] -changelog: - skip: true -release: - prerelease: auto