Skip to content

Commit

Permalink
FEAT: Update release flow 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
daquinteroflex committed Mar 5, 2024
1 parent c4926c3 commit f29fc68
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/sync-to-proxy-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: sync-to-proxy-repo
on:
push:
branches:
- main
- latest
- develop
workflow_dispatch:
inputs:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f29fc68

Please sign in to comment.