forked from tediousjs/node-mssql
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 902 Bytes
/
gh-pages.yml
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
name: Update GitHub Pages
on:
push:
tags:
- '**'
jobs:
pages:
name: Update GitHub Pages
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code from release
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
path: release
- name: Checkout gh-pages branch
uses: actions/checkout@v3
with:
fetch-depth: 0
path: pages
ref: gh-pages
- name: Update gh-pages branch with latest docs
run: |
cd "$GITHUB_WORKSPACE/pages"
cp "$GITHUB_WORKSPACE/release/README.md" ./index.md
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "docs: update docs for ${{ github.ref_name }}"
git push