diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..c031988 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: Deployment +on: + push: + branches: + - main + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: 18.x + - name: Install Packages + run: npm install + - name: Build page + run: npm run build + - name: Deploy to gh-pages + uses: peaceiris/actions-gh-pages@v3 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build