Skip to content

Commit

Permalink
fix 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Jish2 committed Nov 17, 2023
1 parent 987a017 commit 9e42948
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/deploy-next.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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

Expand Down

0 comments on commit 9e42948

Please sign in to comment.