Skip to content

Commit

Permalink
Enable 4 services
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins committed Nov 21, 2023
1 parent e91d0fb commit f56a4d8
Show file tree
Hide file tree
Showing 2,116 changed files with 28 additions and 5,187,385 deletions.
55 changes: 27 additions & 28 deletions .github/workflows/generate-documentation.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,31 @@
name: Generate Documentation

on:
push:
tags:
- '0.0.*'
pull_request:
paths:
- .github/workflows/generate-documentation.yml
- scripts/generatedocc.sh
- scripts/generatedoccindex.sh
release:
types: [published]
# release:
# types: [published]

permissions:
id-token: write

jobs:
versioning:
runs-on: macos-13
outputs:
VERSION: ${{ steps.update-version.outputs.VERSION }}
steps:
- uses: actions/checkout@v2
- name: Extract version from GITHUB_REF
id: update-version
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
echo "Tagged release"
# get last part of GITHUB_REF separated by /
VERSION=$(echo $GITHUB_REF | tr '/' '\n' | tail -1)
echo "Version: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
else
echo "Pull request"
VERSION=${{ github.head_ref }}
echo "Version: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
fi
generate-docs:
needs: versioning
strategy:
matrix:
# Use strategy to split up the work into 32 jobs
job: [0, 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]
runs-on: macos-13
# job: [0, 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]
job: [0, 1, 2, 3]
runs-on: ubuntu-latest
container: swift:5.9-jammy
env:
IGNORE: xxx
steps:
- name: Checkout Sources
uses: actions/checkout@v2
Expand All @@ -49,6 +34,20 @@ jobs:
with:
role-to-assume: ${{ secrets.CD_API_REFS_PUBLISH_ROLE_ARN }}
aws-region: us-east-1
- name: Generate docs
- name: Display user
run: aws sts get-caller-identity
- name: Extract version from GITHUB_REF
id: update-version
run: |
./scripts/generatedocc.sh ${{ needs.versioning.outputs.VERSION }} ${{ matrix.job }} ${{ strategy.job-total }} ${{ env.IGNORE }}
if [[ $GITHUB_REF == refs/tags/* ]]; then
echo "Tagged release"
# get last part of GITHUB_REF separated by /
VERSION=$(echo $GITHUB_REF | tr '/' '\n' | tail -1)
echo "Version: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
else
echo "Error: runs on a tag only"
exit(1)
fi
- name: Generate docs
run: ./scripts/generatedocc.sh $VERSION ${{ matrix.job }} ${{ strategy.job-total }} ${{ env.IGNORE }}
Loading

0 comments on commit f56a4d8

Please sign in to comment.