mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-08-31 01:02:04 +08:00
6cdc2ace8a
Bumps the actions group with 6 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `7.0.0` | `7.0.1` | | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | `8.3.2` | `9.0.0` | | [docker/login-action](https://github.com/docker/login-action) | `4.4.0` | `4.6.0` | | [actions/setup-python](https://github.com/actions/setup-python) | `6.3.0` | `7.0.0` | | [github/codeql-action](https://github.com/github/codeql-action) | `4.37.1` | `4.37.6` | | [zizmorcore/zizmor-action](https://github.com/zizmorcore/zizmor-action) | `0.6.0` | `0.6.2` | Updates `actions/checkout` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v7...v7.0.1) Updates `astral-sh/setup-uv` from 8.3.2 to 9.0.0 - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/v8.3.2...v9.0.0) Updates `docker/login-action` from 4.4.0 to 4.6.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/v4.4.0...v4.6.0) Updates `actions/setup-python` from 6.3.0 to 7.0.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v6.3.0...v7.0.0) Updates `github/codeql-action` from 4.37.1 to 4.37.6 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v4.37.1...v4.37.6) Updates `zizmorcore/zizmor-action` from 0.6.0 to 0.6.2 - [Release notes](https://github.com/zizmorcore/zizmor-action/releases) - [Commits](https://github.com/zizmorcore/zizmor-action/compare/6599ee8b7a49aef6a770f63d261d214911a7ce02...3dc1ecc9bcb9e94e9b2c709687979e1298497054) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: actions/setup-python dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: astral-sh/setup-uv dependency-version: 9.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: docker/login-action dependency-version: 4.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: github/codeql-action dependency-version: 4.37.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: zizmorcore/zizmor-action dependency-version: 0.6.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
86 lines
3.5 KiB
YAML
86 lines
3.5 KiB
YAML
name: Build docs
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'client/**'
|
|
- 'lib/galaxy_test/selenium/**'
|
|
- 'packages/**'
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'client/**'
|
|
- 'lib/galaxy_test/selenium/**'
|
|
- 'packages/**'
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
permissions: {}
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.10']
|
|
steps:
|
|
- name: Get target branch name (push)
|
|
if: github.event_name == 'push'
|
|
run: echo "TARGET_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
|
|
- name: Get target branch name (pull request)
|
|
if: github.event_name == 'pull_request'
|
|
run: echo "TARGET_BRANCH=$GITHUB_BASE_REF" >> $GITHUB_ENV
|
|
- name: Show target branch name
|
|
run: echo $TARGET_BRANCH
|
|
- uses: actions/checkout@v7.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v9.0.0
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install Python dependencies
|
|
run: |
|
|
uv venv .venv
|
|
. .venv/bin/activate
|
|
uv pip install -r requirements.txt -r lib/galaxy/dependencies/dev-requirements.txt sphinxcontrib-simpleversioning
|
|
- name: Add Google Analytics to doc/source/conf.py
|
|
run: |
|
|
sed -i -e "/html_theme_options = {/a\
|
|
\ 'analytics_id': 'UA-45719423-17'," -e "s#https://docs.galaxyproject.org/en/[^/]*/#https://docs.galaxyproject.org/en/$TARGET_BRANCH/#" doc/source/conf.py
|
|
- name: Checkout the latest doc/source/conf.versioning.py
|
|
if: github.event_name != 'push' || github.ref != 'refs/heads/dev'
|
|
run: |
|
|
# We cannot just download the latest version from dev, because it may be newer in this branch/PR
|
|
git fetch origin dev:dev
|
|
if [ ! -f doc/source/conf.versioning.py ] || [ "$(git log -1 --pretty="format:%ct" dev -- doc/source/conf.versioning.py)" -gt "$(git log -1 --pretty="format:%ct" -- doc/source/conf.versioning.py)" ]; then
|
|
git checkout dev -- doc/source/conf.versioning.py
|
|
fi
|
|
- name: Append doc/source/conf.versioning.py
|
|
run: cat doc/source/conf.versioning.py >> doc/source/conf.py
|
|
- name: Build docs
|
|
env:
|
|
# sphinx.ext.viewcode is not parallelized and dominates the build.
|
|
# Pull request builds only need to prove the documentation still
|
|
# builds, so skip it there and keep it for the deployed builds.
|
|
GALAXY_DOCS_SKIP_VIEW_CODE: ${{ github.event_name == 'pull_request' && '1' || '0' }}
|
|
run: make docs
|
|
- name: Deploy docs
|
|
if: github.event_name == 'push' && github.repository_owner == 'galaxyproject'
|
|
env:
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
run: |
|
|
case "$TARGET_BRANCH" in
|
|
release_[[:digit:]][[:digit:]].[[:digit:]][[:digit:]] | release_[[:digit:]][[:digit:]].[[:digit:]] | master)
|
|
UPLOAD_DIR=$TARGET_BRANCH
|
|
;;
|
|
dev)
|
|
UPLOAD_DIR=latest
|
|
;;
|
|
*)
|
|
echo "Not deploying documentation for branch $TARGET_BRANCH"
|
|
exit 0
|
|
;;
|
|
esac
|
|
uv tool install awscli
|
|
aws s3 sync doc/build/html/ "s3://galaxy-docs/en/$UPLOAD_DIR" --region us-east-2 --size-only --delete
|