diff --git a/.github/workflows/deploy-next.yml b/.github/workflows/deploy-next.yml index f355ae8..129967b 100644 --- a/.github/workflows/deploy-next.yml +++ b/.github/workflows/deploy-next.yml @@ -1,14 +1,11 @@ name: Github pages overwrite -run-name: Deploy client build to GH Pages by @${{ github.actor }} +run-name: Deploy client build to GH Pages by @${{ github. actor } on: push: branches: - prod - - # paths: - # - client/** - # NOTE: You may want to limit the trigger branch to be "main" or "master" etc. + # NOTE: You may want to limit the trigger branch to be "main" or "master" etc. jobs: publish: @@ -20,6 +17,17 @@ jobs: - name: Generate your content run: echo "Optional placeholder. Put your project's static website generator command here." + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: "14" + + - name: Install dependencies + run: npm install + + - name: Deploy to Production + run: npm run build + - name: Publish current workdir (which contains generated content) to GitHub Pages uses: rayluo/github-pages-overwriter@v1.3