From b5c3c046f17eb28555f9398bcbc741ae8240676b Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Mon, 19 Aug 2024 17:58:55 +0800 Subject: chore: update content --- .github/workflows/Deploy_Nodejs.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/Deploy_Nodejs.yml (limited to '.github') diff --git a/.github/workflows/Deploy_Nodejs.yml b/.github/workflows/Deploy_Nodejs.yml new file mode 100644 index 0000000..80d3b2e --- /dev/null +++ b/.github/workflows/Deploy_Nodejs.yml @@ -0,0 +1,31 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: yarn install + + - name: Build project + run: yarn build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public \ No newline at end of file -- cgit v1.2.3-70-g09d2