xrfragment/.github/workflows/website.yml

112 lines
3.3 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:
2024-01-30 10:58:00 +01:00
branches: ["main"] # ["main","feat/multiparty"]
2023-04-14 15:12:29 +02:00
# 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
2024-01-30 10:58:00 +01:00
#- name: Checkout feat/multiparty
# uses: actions/checkout@v3
# with:
# ref: feat/multiparty
# path: feat/multiparty
2023-04-14 15:12:29 +02:00
- name: Setup Pages
uses: actions/configure-pages@v3
2024-05-17 17:55:15 +02:00
- name: create index.glb
2024-05-17 17:56:02 +02:00
run: cp example/assets/*.glb .
2023-04-27 17:38:34 +02:00
# working-directory: ./
2023-04-14 15:12:29 +02:00
- name: Upload artifact
2024-01-30 12:07:59 +01:00
uses: actions/upload-pages-artifact@v2
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
2023-11-03 17:49:14 +01:00
## Simple workflow for deploying static content to GitHub Pages
#name: Deploy static content to Pages
#
#on:
# # Runs on pushes targeting the default branch
# push:
# 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
#
#jobs:
# # Single deploy job since we're just deploying
# deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout main
# uses: actions/checkout@v3
2023-12-14 18:14:23 +01:00
# - name: Checkout feat/multiparty
2023-11-03 17:49:14 +01:00
# uses: actions/checkout@v3
# with:
2023-12-14 18:14:23 +01:00
# ref: feat/multiparty
# path: feat/multiparty
2023-11-03 17:49:14 +01:00
# #- name: mkdir branches
2023-12-14 18:14:23 +01:00
# # run: mkdir -p public/feat/multiparty
2023-11-03 17:49:14 +01:00
# - name: Setup Pages
# uses: actions/configure-pages@v3
# - name: create public-folder
# uses: mkdir public
# - name: copy master-branch
# run: cp -r * public/.
# - name: create index.gltf
# run: cp example/assets/query.gltf public/index.gltf
# - name: copy gltfs
# run: cp example/assets/*.gltf public/.
# # Checkout other branches
# # working-directory: ./
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v1
# with:
# path: 'public'
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2
#