Bumps the actions-deps group with 2 updates: [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) and [github/codeql-action](https://github.com/github/codeql-action). Updates `dawidd6/action-download-artifact` from 10 to 11 - [Release notes](https://github.com/dawidd6/action-download-artifact/releases) - [Commits](4c1e823582...ac66b43f0e) Updates `github/codeql-action` from 3.28.19 to 3.29.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](fca7ace96b...ce28f5bb42) --- updated-dependencies: - dependency-name: dawidd6/action-download-artifact dependency-version: '11' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions-deps - dependency-name: github/codeql-action dependency-version: 3.29.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-deps ... Signed-off-by: dependabot[bot] <support@github.com>
65 lines
2.0 KiB
YAML
65 lines
2.0 KiB
YAML
# Copyright (c) 2020 Linaro Limited.
|
|
# Copyright (c) 2021 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
name: Documentation Publish
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: ["Documentation Build"]
|
|
branches:
|
|
- main
|
|
- v*
|
|
types:
|
|
- completed
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
doc-publish:
|
|
name: Publish Documentation
|
|
runs-on: ubuntu-24.04
|
|
if: |
|
|
github.event.workflow_run.event != 'pull_request' &&
|
|
github.event.workflow_run.conclusion == 'success' &&
|
|
github.repository == 'zephyrproject-rtos/zephyr'
|
|
|
|
steps:
|
|
- name: Download artifacts
|
|
uses: dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11
|
|
with:
|
|
workflow: doc-build.yml
|
|
run_id: ${{ github.event.workflow_run.id }}
|
|
|
|
- name: Uncompress HTML docs
|
|
run: |
|
|
tar xf html-output/html-output.tar.xz -C html-output
|
|
if [ -f api-coverage/api-coverage.tar.xz ]; then
|
|
tar xf api-coverage/api-coverage.tar.xz -C api-coverage
|
|
fi
|
|
|
|
- name: Configure AWS Credentials
|
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
|
with:
|
|
aws-access-key-id: ${{ vars.AWS_DOCS_ACCESS_KEY_ID }}
|
|
aws-secret-access-key: ${{ secrets.AWS_DOCS_SECRET_ACCESS_KEY }}
|
|
aws-region: us-east-1
|
|
|
|
- name: Upload to AWS S3
|
|
env:
|
|
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
|
|
run: |
|
|
if [ "${HEAD_BRANCH:0:1}" == "v" ]; then
|
|
VERSION=${HEAD_BRANCH:1}
|
|
else
|
|
VERSION="latest"
|
|
fi
|
|
|
|
aws s3 sync --quiet html-output/html s3://docs.zephyrproject.org/${VERSION} --delete
|
|
aws s3 sync --quiet html-output/html/doxygen/html s3://docs.zephyrproject.org/apidoc/${VERSION} --delete
|
|
if [ -d api-coverage/coverage-report ]; then
|
|
aws s3 sync --quiet api-coverage/coverage-report/ s3://docs.zephyrproject.org/api-coverage/${VERSION} --delete
|
|
fi
|
|
aws s3 cp --quiet pdf-output/zephyr.pdf s3://docs.zephyrproject.org/${VERSION}/zephyr.pdf
|