diff options
Diffstat (limited to '.github/workflows/Deploy_Nodejs.yml')
| -rw-r--r-- | .github/workflows/Deploy_Nodejs.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/Deploy_Nodejs.yml b/.github/workflows/Deploy_Nodejs.yml new file mode 100644 index 0000000..80d3b2e --- /dev/null +++ b/.github/workflows/Deploy_Nodejs.yml @@ -0,0 +1,31 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: yarn install + + - name: Build project + run: yarn build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public
\ No newline at end of file |
