xrfragment/.github/workflows/website.yml

49 lines
1.4 KiB
YAML
Raw Normal View History

2023-04-14 15:12:29 +02:00
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
2023-04-14 14:45:50 +02:00
on:
2023-04-14 15:12:29 +02:00
# Runs on pushes targeting the default branch
2023-04-14 14:45:50 +02:00
push:
2023-04-14 15:12:29 +02:00
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
2023-04-14 14:45:50 +02:00
jobs:
2023-04-14 15:12:29 +02:00
# Single deploy job since we're just deploying
2023-04-14 14:45:50 +02:00
deploy:
2023-04-14 15:12:29 +02:00
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
2023-04-14 14:45:50 +02:00
runs-on: ubuntu-latest
steps:
2023-04-14 15:12:29 +02:00
- name: Checkout
2023-04-14 14:57:08 +02:00
uses: actions/checkout@v3
2023-04-14 15:12:29 +02:00
- name: Setup Pages
uses: actions/configure-pages@v3
2023-06-27 14:38:50 +02:00
- name: create index.gltf
run: cp example/assets/query.gltf index.gltf
2023-06-30 13:59:43 +02:00
- name: copy gltfs
run: cp example/assets/*.gltf .
2023-04-27 17:38:34 +02:00
# working-directory: ./
2023-04-14 15:12:29 +02:00
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
2023-04-14 14:45:50 +02:00
with:
2023-04-27 17:38:34 +02:00
path: '.'
2023-04-14 15:12:29 +02:00
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2