Skip to content

Commit 69b7b05

Browse files
authored
chore: Update prod branch on release (#39)
* To trigger a new netlify deploy, update prod from main on release.
1 parent e5877ed commit 69b7b05

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,13 @@ jobs:
1919
with:
2020
token: ${{ secrets.ZMK_STUDIO_RELEASE_TOKEN }}
2121
release-type: node
22+
- uses: actions/checkout@v4
23+
if: ${{ steps.release.outputs.release_created }}
24+
args:
25+
ref: prod
26+
- name: publish to prod branch
27+
if: ${{ steps.release.outputs.release_created }}
28+
run: |
29+
git pull --ff-only main
30+
git remote set-url origin "https://x-access-token:${{ secrets.ZMK_STUDIO_RELEASE_TOKEN }}@github.com/${{ github.repository }}.git"
31+
git push

0 commit comments

Comments
 (0)