Merge pull request #3 from alreadynyeong/dependabot/npm_and_yarn/next… #32
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
name: Frontend Build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install and Build | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm install | |
- run: npm run build | |
env: | |
CI: true | |
DEPLOY_TARGET: "gh-pages" | |
- run: touch out/.nojekyll | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
publish_dir: ./out |