@@ -16,11 +16,12 @@ jobs:
1616 uses : actions/checkout@v3
1717 with :
1818 fetch-depth : 0 # This ensures all history and tags are fetched
19+ path : auth0-cli
1920
2021 - name : Set up Go
2122 uses : actions/setup-go@v3
2223 with :
23- go-version-file : go.mod
24+ go-version-file : auth0-cli/ go.mod
2425 check-latest : true
2526
2627 - name : Import GPG key
@@ -32,12 +33,62 @@ jobs:
3233 git_user_signingkey : true
3334 git_commit_gpgsign : true
3435 git_tag_gpgsign : true
36+ git_committer_email : auth0-cli-cd-sa@okta.com
37+ git_committer_name : auth0
3538
3639 - name : Run GoReleaser
3740 uses : goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # pin@6.2.1
3841 with :
3942 version : " 2.7.0"
4043 args : release --clean
44+ workdir : ' auth0-cli'
4145 env :
4246 GITHUB_TOKEN : ${{ secrets.GORELEASER_GITHUB_TOKEN }}
4347 SENTRY_DSN : ${{ secrets.SENTRY_DSN }}
48+
49+ # Homebrew Tap Process
50+ - name : Checkout Homebrew Tap Repo
51+ uses : actions/checkout@v3
52+ with :
53+ repository : auth0/homebrew-auth0-cli
54+ token : ${{ secrets.GORELEASER_GITHUB_TOKEN }}
55+ path : homebrew-auth0-cli
56+
57+ - name : Copy Brew Formula
58+ run : |
59+ cp auth0-cli/dist/homebrew/*.rb homebrew-auth0-cli/
60+
61+ - name : Create Homebrew Pull Request
62+ uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # pin@7.0.8
63+ with :
64+ token : ${{ secrets.GORELEASER_GITHUB_TOKEN }}
65+ commit-message : " Brew formula update for auth0-cli version ${{ github.ref_name }}"
66+ branch : ${{ github.ref_name }}
67+ title : " Brew formula update for auth0-cli version ${{ github.ref_name }}"
68+ body : " This PR updates the Homebrew formula for version ${{ github.ref_name }}."
69+ base : main
70+ committer : auth0 <auth0-cli-cd-sa@okta.com>
71+ path : homebrew-auth0-cli
72+
73+ # Scoop Manifest Process
74+ - name : Checkout Scoop Repo
75+ uses : actions/checkout@v3
76+ with :
77+ repository : auth0/scoop-auth0-cli
78+ token : ${{ secrets.GORELEASER_GITHUB_TOKEN }}
79+ path : scoop-auth0-cli
80+
81+ - name : Copy Scoop Manifest
82+ run : |
83+ cp auth0-cli/dist/scoop/*.json scoop-auth0-cli/
84+ - name : Create Scoop Pull Request
85+ uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # pin@7.0.8
86+ with :
87+ token : ${{ secrets.GORELEASER_GITHUB_TOKEN }}
88+ commit-message : " Scoop manifest update for auth0-cli version ${{ github.ref_name }}"
89+ branch : ${{ github.ref_name }}
90+ title : " Scoop manifest update for auth0-cli version ${{ github.ref_name }}"
91+ body : " This PR updates the Scoop manifest for version ${{ github.ref_name }}."
92+ base : main
93+ committer : auth0 <auth0-cli-cd-sa@okta.com>
94+ path : scoop-auth0-cli
0 commit comments