-
Notifications
You must be signed in to change notification settings - Fork 161
38 lines (38 loc) · 1.22 KB
/
update_docs.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
36
37
38
name: Update documentation
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: timbru31/ruby-node:3.0-16
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main
- name: Fixup git permissions
# https://github.com/actions/checkout/issues/766
shell: bash
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: apt-get update && apt-get install zip
- run: bundle install
- run: chmod -R 777 .
- run: npm ci
- run: npm run build
- name: Publish on gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
chown -R 1001:121 "/github/home/.npm"
chown -R 1001:121 "/github/home/.bundle/"
chmod -R 777 /github/home/.bundle/
chmod -R 777 /usr/local/bundle/
npm run documentation-deploy-to-gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}