You've already forked element-x-android
mirror of
https://github.com/element-hq/element-x-android.git
synced 2026-10-23 18:49:00 +03:00
The step names said "Set up Python 3.12" while the actual version is set by python-version and updated by Renovate, so the names got out of sync. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
44 lines
1.7 KiB
YAML
44 lines
1.7 KiB
YAML
name: Generate GitHub Pages
|
|
on:
|
|
workflow_dispatch:
|
|
# Disabled for now, as we don't want to generate GitHub Pages on every push to main anymore
|
|
# schedule:
|
|
# # At 00:00 on every Tuesday UTC
|
|
# - cron: '0 0 * * 2'
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
generate-github-pages:
|
|
runs-on: ubuntu-latest
|
|
# Skip in forks
|
|
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: ⏬ Checkout with LFS
|
|
uses: nschloe/action-cached-lfs-checkout@385a8ecc719e50b8c71af6ab01a624b486b7c3bc # v1.2.5
|
|
- name: Use JDK 21
|
|
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
|
|
with:
|
|
distribution: 'temurin' # See 'Supported distributions' for available options
|
|
java-version: '21'
|
|
- name: Configure gradle
|
|
uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0
|
|
with:
|
|
cache-read-only: true # Only the debug build and unit tests jobs write the Gradle cache, see build.yml
|
|
- name: Set up Python
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
with:
|
|
python-version: 3.15
|
|
- name: Run World screenshots generation script
|
|
run: |
|
|
./tools/test/generateWorldScreenshots.py
|
|
mkdir -p screenshots/en
|
|
cp tests/uitests/src/test/snapshots/images/* screenshots/en
|
|
- name: Deploy GitHub Pages
|
|
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./screenshots
|