-
Notifications
You must be signed in to change notification settings - Fork 40
79 lines (64 loc) · 2.39 KB
/
DocsGenDeployManually.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: docs-generate-deploy-manually
on:
workflow_dispatch:
jobs:
compile-prod:
runs-on: ubuntu-latest
steps:
- name: Checkout branch main
uses: actions/checkout@v3
with:
ref: main
- name: Install project dependencies
run: npm install
- name: Compile Production code
run: npm run build
- name: Sign and commit compiled code to branch main
uses: ./.github/os-git-actions/signed-commit/
with:
branch: main
message: 'Compiled Production Mode [skip ci]'
newFiles: true
gpgPriv: ${{ secrets.GPG_SIGN_KEY }}
gpgPassPhrase: ${{ secrets.GPG_PASSPHRASE }}
update-doc:
needs: compile-prod
runs-on: ubuntu-latest
steps:
- name: Checkout branch main
uses: actions/checkout@v3
with:
ref: main
token: ${{ secrets.PAT }}
- uses: actions/setup-node@v3
- name: Install project dependencies
run: npm install
- name: Install graphviz
run: sudo apt install -y graphviz
- name: Generate documentation
run: npm run docs
- name: Sign and commit documentation to branch main
uses: ./.github/os-git-actions/signed-commit/
with:
branch: main
message: 'Update documentation [skip ci]'
newFiles: true
gpgPriv: ${{ secrets.GPG_SIGN_KEY }}
gpgPassPhrase: ${{ secrets.GPG_PASSPHRASE }}
deploy-doc:
needs: update-doc
runs-on: ubuntu-latest
steps:
- name: Checkout branch main
uses: actions/checkout@v3
with:
ref: main
- uses: actions/setup-node@v3
- name: Push documentation into github page
uses: GuillaumeFalourd/copy-push-files@v1
with:
source_files: docs/*
remote_repository: https://github.com/outsystems-ui-docs/outsystems-ui-docs.github.io
access_token: ${{ secrets.UICOMPONENTSDOCS }}
target_branch: main
commit_message: Deploy documentation.