From 2e1118e2a63386a39cb2997ef91a24003d07c00b Mon Sep 17 00:00:00 2001 From: cccaaannn Date: Sun, 19 Nov 2023 00:32:24 +0300 Subject: [PATCH] pages pipeline --- .github/workflows/pages.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pages.yaml diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml new file mode 100644 index 0000000..96b6883 --- /dev/null +++ b/.github/workflows/pages.yaml @@ -0,0 +1,30 @@ +name: Deploy to GitHub pages +on: + push: + branches: ["master"] + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: "npm" + + - name: Install dependencies + run: npm install + + - name: Build + run: npm run build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist