diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..0ab3553 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,21 @@ +name: Deploy pages +on: push +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2.1.5 + with: + node-version: '14' + - name: Install dependencies + run: npm install + - name: Build + run: npm run build -- --base /${{ github.event.repository.name }}/ + - name: Deploy pages + uses: crazy-max/ghaction-github-pages@v2.3.0 + with: + target_branch: gh-pages + build_dir: dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file