mirror of
https://github.com/godotengine/godot-team-reports.git
synced 2026-01-04 10:09:50 +03:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Continuous integration
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
schedule:
|
|
# Every day every two hours starting at midnight (UTC).
|
|
- cron: '0 0,2,4,6,8,10,12,14,16,18,20,22 * * *'
|
|
|
|
# Make sure jobs cannot overlap (e.g. one from push and one from schedule).
|
|
concurrency:
|
|
group: pages-ci
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and deploy to GitHub Pages
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Node.js 14.x
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 14.x
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build the static content using npm
|
|
run: npm run build
|
|
|
|
- name: Fetch pull request data
|
|
run: npm run compose-db
|
|
|
|
- name: Deploy to GitHub Pages 🚀
|
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
with:
|
|
# The branch the action should deploy to.
|
|
BRANCH: gh-pages
|
|
# The folder the action should deploy.
|
|
FOLDER: out
|
|
# Don't keep the history.
|
|
SINGLE_COMMIT: true
|