diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..efa0112 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,35 @@ +name: deploy + +on: + push: + branches: [main] + paths-ignore: + - README.md + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2 + with: + version: 8 + + - name: Build + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'pnpm' + - run: pnpm install + - run: pnpm build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + publish_dir: ./dist + external_repository: plos-clan/plos-clan.github.io + personal_token : ${{ secrets.PLOSCLAN_DEPLOY }} + commit_message: Github CI