From 33bfd882c8f101da0f98eb8055ff0c75c3cb66c3 Mon Sep 17 00:00:00 2001 From: baiy Date: Sat, 14 Aug 2021 11:11:04 +0800 Subject: [PATCH] gh pages --- .github/workflows/gh-pages.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..fc7464c --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,26 @@ +name: Build to gh-pages +on: + push: + branches: + - master +jobs: + deploy: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x] + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install Packages + run: npm install + - name: Build page + run: npm run build -adapter=web + - name: Deploy to gh-pages + uses: peaceiris/actions-gh-pages@v3 + with: + deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + publish_dir: ./dist \ No newline at end of file -- GitLab