-
Notifications
You must be signed in to change notification settings - Fork 90
40 lines (31 loc) · 882 Bytes
/
Copy pathpublish.yml
File metadata and controls
40 lines (31 loc) · 882 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: Publish Html
on:
push:
branches: [latest, develop, release-*]
pull_request:
branches: [latest, develop, release-*]
defaults:
run:
shell: bash
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Check Spelling
run: |
rake spellcheck
- name: Make Html
run: |
rake build
- name: Publish to the test repo
run: GITHUB_TOKEN=${{ secrets.OSC_WIAG_PUB_REPO_TOKEN }} /bin/bash push.sh "ood-documentation-test"
- name: Publish to the main repo
if: github.event_name == 'push'
run: GITHUB_TOKEN=${{ secrets.OSC_WIAG_PUB_REPO_TOKEN }} /bin/bash push.sh "ood-documentation"