Skip to content

Commit

Permalink
test on pull request.
Browse files Browse the repository at this point in the history
  • Loading branch information
SandPod committed Jan 26, 2024
1 parent 4fc3e29 commit 8644a39
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Docusaurus deploy
on:
push:
pull_request:
branches:
- main

Expand All @@ -16,30 +16,28 @@ jobs:
with:
node-version: 18
cache: npm
- name: Checkout docs docs
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
path: src
- name: Build docs
run: |
cd src
npm ci
npm run build
- name: Checkout target
uses: actions/checkout@v4
with:
path: target
ref: test_deploy_branch
repository: serverpod/serverpod.github.io
ssh-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Deploy to target
run: |
git config --global user.email "[email protected]"
git config --global user.name "serverpod_docs"
cp -r build/* ../target/docs
cd ../target/docs
git add .
git commit -m "Deployed by Serverpod docs deploy action"
git push
# - uses: actions/checkout@v4
# with:
# path: target
# ref: test_deploy_branch
# repository: serverpod/serverpod.github.io
# ssh-key: ${{ secrets.GH_PAGES_DEPLOY }}
# - name: Deploy to target
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "serverpod_docs"
# cp -r build/* ../target/docs
# cd ../target/docs
# git add .
# git commit -m "Deployed by Serverpod docs deploy action"
# git push


0 comments on commit 8644a39

Please sign in to comment.