-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (37 loc) · 993 Bytes
/
publishSite.yml
File metadata and controls
40 lines (37 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: release
on:
push:
branches: [main]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: yarn
- name: install deps
run: yarn install
- name: build docs
run: |
rm -rf out
git worktree prune
git fetch origin gh-pages:gh-pages
git worktree add out gh-pages
yarn build:ci
cp -r out/tmp/* out
rm -rf out/tmp
- uses: salesforcecli/github-workflows/.github/actions/gitConfig@main
with:
username: "svc-cli-bot-jsforce"
email: "svc_cli_bot@salesforce.com"
- name: send to git
run: |
cd out
git add .
git commit -m 'docs: publishing gh-pages [skip ci]' --no-verify
git push origin gh-pages --no-verify