-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (49 loc) · 1.91 KB
/
publish_doc.yaml
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
name: publish
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Install aws-cli
run: |
sudo apt-get install -y unzip
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -o awscliv2.zip
sudo ./aws/install -u
- uses: actions/checkout@v4
with:
repository: 'outscale-dev/cluster-api-provider-outscale'
path: "cluster-api-provider-outscale"
ref: main
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: install mdbook
run: make install-mdbook
shell: bash
working-directory: cluster-api-provider-outscale
- name: generate doc
run: make build
shell: bash
working-directory: cluster-api-provider-outscale/docs/
- name: Copy website
run: cp website.json ./book
shell: bash
working-directory: cluster-api-provider-outscale/docs/
- run: aws s3 cp ./book s3://cluster-api-outscale --acl public-read --recursive --endpoint https://oos.eu-west-2.outscale.com --recursive
shell: bash
working-directory: cluster-api-provider-outscale/docs/
env:
AWS_ACCESS_KEY_ID: ${{secrets.OSC_OPENSOURCE_ACCESS_KEY}}
AWS_SECRET_ACCESS_KEY: ${{secrets.OSC_OPENSOURCE_SECRET_KEY}}
AWS_DEFAULT_REGION: ${{secrets.OSC_OPENSOURCE_REGION}}
- run: aws s3 cp ./theme s3://cluster-api-outscale --acl public-read --recursive --endpoint https://oos.eu-west-2.outscale.com --recursive
shell: bash
working-directory: cluster-api-provider-outscale/docs/
env:
AWS_ACCESS_KEY_ID: ${{secrets.OSC_OPENSOURCE_ACCESS_KEY}}
AWS_SECRET_ACCESS_KEY: ${{secrets.OSC_OPENSOURCE_SECRET_KEY}}
AWS_DEFAULT_REGION: ${{secrets.OSC_OPENSOURCE_REGION}}