Skip to content

Merge pull request #100 from geniusyield/dependabot/npm_and_yarn/nano… #170

Merge pull request #100 from geniusyield/dependabot/npm_and_yarn/nano…

Merge pull request #100 from geniusyield/dependabot/npm_and_yarn/nano… #170

Workflow file for this run

name: Deploy to Github Pages
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
github_pages_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: yarn install && yarn export
- name: Deploy
if: github.ref_name == 'main'
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
yarn deploy -- -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}