Initial commit

This commit is contained in:
Hugo Locurcio
2023-08-16 22:15:45 +02:00
commit df8e9872bc
3 changed files with 51 additions and 0 deletions

6
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

38
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
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@v3
- name: Generate class reference table and build website
env:
HUGO_VERSION: '0.117.0'
# TODO: Use godotengine organization URL and master branch.
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/Calinou/godot-benchmarks.git --branch=add-web-interface
hugo --minify --source=godot-benchmarks/web --destination=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

7
README.md Normal file
View File

@@ -0,0 +1,7 @@
# Results for Godot benchmarks
This repository hosts benchmark results only, which are built into a website
using GitHub Pages.
See [godot-benchmarks](https://github.com/godotengine/godot-benchmarks)' `web/`
folder for the website sources.