Bump deps, fix README. #14736
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |