forked from oclint/oclint
-
Notifications
You must be signed in to change notification settings - Fork 17
27 lines (26 loc) · 1.01 KB
/
docgen.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
name: Documentation Generation
on: [push, pull_request]
jobs:
docgen:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-11]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- run: sudo xcode-select -s /Applications/Xcode_13.0.app/Contents/Developer
if: matrix.os == 'macos-11'
- run: cd oclint-scripts && ./gh-actions docgen
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
if: github.event_name == 'push'
- name: Copy artifacts to AWS S3
env:
RUNNER_OS: ${{ matrix.os }}
run: aws s3 cp build/ s3://travisci-artifacts.oclint.org/${GITHUB_REPOSITORY}/gh-docgen-${GITHUB_RUN_ID}/${RUNNER_OS} --recursive --exclude "*" --include "oclint-*.tar.gz"
if: github.event_name == 'push'