Skip to content

Add Changelog for v1.24.0 (#1404) #984

Add Changelog for v1.24.0 (#1404)

Add Changelog for v1.24.0 (#1404) #984

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # This ensures all history and tags are fetched
path: auth0-cli
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: auth0-cli/go.mod
check-latest: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # [email protected]
with:
version: "2.7.0"
args: release --clean
workdir: 'auth0-cli'
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
# Homebrew Tap Process
- name: Checkout Homebrew Tap Repo
uses: actions/checkout@v3
with:
repository: auth0/homebrew-auth0-cli
token: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
path: homebrew-auth0-cli
- name: Import GPG key for Homebrew Tap
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # ping 6.2.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
git_tag_gpgsign: true
git_committer_email: [email protected]
git_committer_name: auth0
workdir: 'homebrew-auth0-cli'
- name: Copy Brew Formula
run: |
cp auth0-cli/dist/homebrew/*.rb homebrew-auth0-cli/
- name: Create Homebrew Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # [email protected]
with:
token: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
commit-message: "Brew formula update for auth0-cli version ${{ github.ref_name }}"
branch: ${{ github.ref_name }}
title: "Brew formula update for auth0-cli version ${{ github.ref_name }}"
body: "This PR updates the Homebrew formula for version ${{ github.ref_name }}."
base: main
committer: auth0 <[email protected]>
path: homebrew-auth0-cli
# Scoop Manifest Process
- name: Checkout Scoop Repo
uses: actions/checkout@v3
with:
repository: auth0/scoop-auth0-cli
token: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
path: scoop-auth0-cli
- name: Copy Scoop Manifest
run: |
cp auth0-cli/dist/scoop/*.json scoop-auth0-cli/
- name: Import GPG key for Scoop
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # ping 6.2.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
git_tag_gpgsign: true
git_committer_email: [email protected]
git_committer_name: auth0
workdir: 'scoop-auth0-cli'
- name: Create Scoop Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # [email protected]
with:
token: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
commit-message: "Scoop manifest update for auth0-cli version ${{ github.ref_name }}"
branch: ${{ github.ref_name }}
title: "Scoop manifest update for auth0-cli version ${{ github.ref_name }}"
body: "This PR updates the Scoop manifest for version ${{ github.ref_name }}."
base: main
committer: auth0 <[email protected]>
path: scoop-auth0-cli