Merge pull request #4 from Unpackerr/renovate/golift.io-xtractr-digest #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-and-release | |
on: | |
push: | |
tags: | |
- v* | |
permissions: | |
contents: write | |
packages: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Import GPG key | |
id: import_gpg | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.GPG_SIGNING_KEY }} | |
- name: "Create GPG_SIGNING_KEY file" | |
run: "echo '${{ secrets.GPG_SIGNING_KEY }}' > /tmp/key.gpg" | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
cache: true | |
- uses: goreleaser/goreleaser-action@v5 | |
with: | |
version: nightly | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Use a fine grained PAT with Contents: R/W on golift/homebrew-mugs. | |
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} | |
GPG_SIGNING_KEY: /tmp/key.gpg | |
GPG_SIGNING_KEY_ID: ${{ steps.import_gpg.outputs.keyid }} | |
- uses: golift/upload-packagecloud@v1 | |
with: | |
userrepo: golift/pkgs | |
apitoken: ${{ secrets.PACKAGECLOUD_TOKEN }} | |
packages: dist/ | |
rpmdists: el/6 | |
debdists: ubuntu/focal |