Files
godot-benchmarks-results/.github/workflows/ci.yml
dependabot[bot] 1d22ae0741 Bump actions/checkout from 5 to 6 (#5)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-21 10:47:29 +01:00

44 lines
1.6 KiB
YAML

name: Continuous integration
on:
push:
pull_request:
workflow_dispatch:
jobs:
deploy:
name: Build and deploy to GitHub Pages
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Generate class reference table and build website
env:
HUGO_VERSION: '0.117.0'
run: |
curl -LO "https://github.com/gohugoio/hugo/releases/download/v$HUGO_VERSION/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz"
tar xf "hugo_${HUGO_VERSION}_Linux-64bit.tar.gz" hugo
sudo mv hugo /usr/local/bin/
git clone --depth=1 https://github.com/godotengine/godot-benchmarks.git
# Copy benchmark JSONs to the web source so they can be included in the built website.
cp 2*.md godot-benchmarks/web/src-data/benchmarks
ls -l godot-benchmarks/web/content
cd ./godot-benchmarks/web
python3 generate-content.py
cd ../..
hugo --minify --source=godot-benchmarks/web --destination="$PWD/public"
- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
# Only deploy from the `main` branch, and never deploy from pull requests.
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' }}
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# The branch the action should deploy to.
BRANCH: gh-pages
# The folder the action should deploy.
FOLDER: public
# Artifacts are large, don't keep the branch's history
SINGLE_COMMIT: true