mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 20:01:55 +00:00
Add workflow to generate world screenshots and generate GitHub page from it.
This commit is contained in:
committed by
Benoit Marty
parent
f2d76deee3
commit
b999647674
@@ -0,0 +1,35 @@
|
|||||||
|
name: Generate GitHub Pages
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
# At 00:00 on every Tuesday UTC
|
||||||
|
- cron: '0 0 * * 2'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
generate-github-pages:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Skip in forks
|
||||||
|
if: github.repository == 'element-hq/element-x-android'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Use JDK 17
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'temurin' # See 'Supported distributions' for available options
|
||||||
|
java-version: '17'
|
||||||
|
- name: Configure gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v3
|
||||||
|
with:
|
||||||
|
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
|
||||||
|
- name: Set up Python 3.9
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: 3.9
|
||||||
|
- name: Run World screenshots generation script
|
||||||
|
run: |
|
||||||
|
./tools/test/generateWorldScreenshots.py
|
||||||
|
- name: Deploy GitHub Pages
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./screenshots
|
||||||
Reference in New Issue
Block a user