Skip to content

Commit

Permalink
add deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jish2 committed Nov 17, 2023
1 parent 2661603 commit d647471
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/deploy-next.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Github pages overwrite
run-name: Deploy client build to GH Pages

on:
on:
paths:
- client/**
push:
branches:
- prod
# NOTE: You may want to limit the trigger branch to be "main" or "master" etc.
workflow_dispatch:


jobs:
publish:
Expand Down Expand Up @@ -42,3 +46,14 @@ jobs:
# It specifies the temporary branch which hosts the static website.
# Each build will OVERWRITE this branch.
# target-branch: prod

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit d647471

Please sign in to comment.