-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4926c3
commit f29fc68
Showing
1 changed file
with
10 additions
and
2 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: sync-to-proxy-repo | |
on: | ||
push: | ||
branches: | ||
- main | ||
- latest | ||
- develop | ||
workflow_dispatch: | ||
inputs: | ||
|
@@ -29,7 +29,7 @@ jobs: | |
echo "::set-output name=env::dev" | ||
echo "ENV=dev" >> $GITHUB_ENV | ||
fi | ||
if test "${{ github.event_name }}" = 'push' -a "${{ github.ref }}" = 'refs/heads/main' | ||
if test "${{ github.event_name }}" = 'push' -a "${{ github.ref }}" = 'refs/heads/latest' | ||
then | ||
echo "::set-output name=env::prod" | ||
echo "ENV=prod" >> $GITHUB_ENV | ||
|
@@ -50,6 +50,14 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Update latest from develop to upload to dev environment | ||
if: contains(${{ github.ref }}, 'develop') == true | ||
uses: everlytic/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
source_ref: ${{ github.ref }} | ||
target_branch: "latest" | ||
commit_message_template: 'UPLOAD: :shipit: :boom: :tada: Merged develop into latest' | ||
- uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: docs | ||
|