Skip to content

Commit

Permalink
updated workflow to build when pushed to dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sid597 committed Jun 10, 2024
1 parent 018965a commit 9f5d808
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- dev

permissions:
contents: write
Expand Down Expand Up @@ -35,8 +36,25 @@ jobs:
- name: Build the optimized release using shadow-cljs
run: npx shadow-cljs release app

- name: Determine Deployment Branch
id: get-branch
run: echo "branch=$(if [ '${{ github.ref_name }}' == 'main' ]; then echo 'gh-pages'; else echo 'gh-pages-dev'; fi)" >> $GITHUB_ENV

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public/app
publish_dir: ./public/app
publish_branch: ${{ env.branch }}












0 comments on commit 9f5d808

Please sign in to comment.