-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
(cherry picked from commit 84cc76e) Co-authored-by: Karl Cardenas <[email protected]>
- Loading branch information
1 parent
da38875
commit 18066e1
Showing
2 changed files
with
39 additions
and
34 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Version Branch Update | ||
|
||
on: | ||
pull_request: | ||
pull_request_target: | ||
branches: | ||
- 'version-[0-9]-[0-9]' | ||
types: [opened, synchronize, reopened] | ||
|
@@ -38,7 +38,7 @@ jobs: | |
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
|
||
|
||
|
@@ -50,36 +50,41 @@ jobs: | |
|
||
- run: npm ci | ||
|
||
- name: Post Netlify progress | ||
uses: mshick/add-pr-comment@v2 | ||
with: | ||
message: | | ||
π€ Starting the Netlify preview build for commit ${{ github.sha }}. This may take a few minutes. | ||
refresh-message-position: true | ||
update-only: true | ||
|
||
- name: Netlify Build | ||
- name: compile | ||
run: | | ||
make versions-ci | ||
netlify build --context deploy-preview | ||
- name: Deploy to Netlify | ||
id: netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: ./build | ||
deploy-message: 'Manual Netlify deployment from GitHub Actions - ${{ github.sha }}' | ||
enable-pull-request-comment: true | ||
overwrites-pull-request-comment: true | ||
enable-commit-comment: true | ||
|
||
- name: Post Netlify URL | ||
uses: mshick/add-pr-comment@v2 | ||
with: | ||
message: | | ||
π Netlify preview deployed succesfully for commit ${{ github.sha }}. Click [here](${{steps.netlify.outputs.deploy-url}}) to preview the changes. | ||
message-failure: | | ||
π Uh oh! The Netlify Preview failed to deploy for commit ${{ github.sha }}. Please check the Netlify logs for more information. | ||
refresh-message-position: true | ||
update-only: true | ||
make build | ||
# - name: Post Netlify progress | ||
# uses: mshick/add-pr-comment@v2 | ||
# with: | ||
# message: | | ||
# π€ Starting the Netlify preview build for commit ${{ github.sha }}. This may take a few minutes. | ||
# refresh-message-position: true | ||
# update-only: true | ||
|
||
# - name: Netlify Build | ||
# run: | | ||
# make versions-ci | ||
# netlify build --context deploy-preview | ||
|
||
|
||
# - name: Deploy to Netlify | ||
# id: netlify | ||
# uses: nwtgck/[email protected] | ||
# with: | ||
# publish-dir: ./build | ||
# deploy-message: 'Manual Netlify deployment from GitHub Actions - ${{ github.sha }}' | ||
# enable-pull-request-comment: true | ||
# overwrites-pull-request-comment: true | ||
# enable-commit-comment: true | ||
|
||
# - name: Post Netlify URL | ||
# uses: mshick/add-pr-comment@v2 | ||
# with: | ||
# message: | | ||
# π Netlify preview deployed succesfully for commit ${{ github.sha }}. Click [here](${{steps.netlify.outputs.deploy-url}}) to preview the changes. | ||
# message-failure: | | ||
# π Uh oh! The Netlify Preview failed to deploy for commit ${{ github.sha }}. Please check the Netlify logs for more information. | ||
# refresh-message-position: true | ||
# update-only: true |
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