Revert "ammending copyright to reference Swift project authors as well" #195
Workflow file for this run
This file contains hidden or 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
| name: Build documentation | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| push: | |
| branches: [main] | |
| schedule: | |
| - cron: '0 2 * * *' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-docs: | |
| name: Build combined documentation | |
| if: github.event_name != 'schedule' || github.repository == 'swiftlang/docs' | |
| runs-on: ubuntu-latest | |
| container: | |
| # image: swiftlang/swift:nightly-main-jammy | |
| image: swift:6.3 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/cache@v6 | |
| with: | |
| path: .workspace | |
| key: docs-workspace-${{ hashFiles('scripts/sources.json') }} | |
| restore-keys: | | |
| docs-workspace- | |
| - name: Install Python | |
| run: apt-get update && apt-get install -y python3 | |
| - name: Build documentation | |
| run: python3 scripts/build_docs.py --output-dir "$GITHUB_WORKSPACE/build-output" | |
| - name: Package build output | |
| run: tar -czf "$GITHUB_WORKSPACE/combined-documentation.tar.gz" -C "$GITHUB_WORKSPACE/build-output" . | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: combined-documentation | |
| path: combined-documentation.tar.gz |