Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/build_and_deploy_website.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build and deploy website
on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./doc/website
steps:
# Checkout the repository
- uses: actions/checkout@v3

# Setup a Dart environment
- uses: dart-lang/setup-dart@v1

# Download all the packages that the app uses
- run: dart pub get

# Build the static site.
- run: dart run bin/main.dart

# Zip and upload the static site.
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./doc/website/build

deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
22 changes: 22 additions & 0 deletions .github/workflows/pr_validation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PR Validation
on:
pull_request:

jobs:
build_website:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./doc/website
steps:
# Checkout the repository
- uses: actions/checkout@v3

# Setup a Dart environment
- uses: dart-lang/setup-dart@v1

# Download all the packages that the app uses
- run: dart pub get

# Build the static site.
- run: dart run bin/main.dart