-
Notifications
You must be signed in to change notification settings - Fork 71
107 lines (94 loc) · 3.7 KB
/
release.yml
File metadata and controls
107 lines (94 loc) · 3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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 # pin@6.2.1
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: auth0-cli-cd-sa@okta.com
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 # pin@7.0.8
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 <auth0-cli-cd-sa@okta.com>
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: auth0-cli-cd-sa@okta.com
git_committer_name: auth0
workdir: 'scoop-auth0-cli'
- name: Create Scoop Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # pin@7.0.8
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 <auth0-cli-cd-sa@okta.com>
path: scoop-auth0-cli