-
Notifications
You must be signed in to change notification settings - Fork 324
36 lines (35 loc) · 1.11 KB
/
ci.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
on:
pull_request:
push:
branches: [master, develop]
jobs:
build-docs:
name: Build docs
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v27
- uses: cachix/cachix-action@v15
with:
name: wire-server
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build docs
run: nix-build --no-out-link ./nix -A docs
- name: Configure AWS credentials
if: ${{ github.ref == 'refs/heads/develop' }}
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::093205192929:role/gh-actions-wire-server
aws-region: eu-west-1
- name: Deploy docs
if: ${{ github.ref == 'refs/heads/develop' }}
run: |
docs=$(nix-build --no-out-link ./nix -A docs)
aws s3 sync $docs/html s3://origin-docs.wire.com/
aws s3 cp $docs/pdf/wire_federation.pdf s3://origin-docs.wire.com/main.pdf