Skip to content

Commit

Permalink
Update static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vtouze authored Nov 5, 2024
1 parent 4aa78f0 commit d0f1e39
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# Workflow for deploying specific content to GitHub Pages
name: Deploy main.html to Pages

on:
# Trigger on pushes to the main branch
push:
branches: ["main"]

# Allows the workflow to be run manually from the Actions tab
workflow_dispatch:

# Sets permissions for deployment
permissions:
contents: read
pages: write
id-token: write

# Single deployment job
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -26,11 +20,12 @@ jobs:
- name: Setup GitHub Pages
uses: actions/configure-pages@v3

# Copy main.html to root directory of the artifact to serve as homepage
- name: Prepare GitHub Pages content
run: |
mkdir -p public
cp Website/main.html public/index.html
# Copy Unity build files to public
cp -r UnitySimSwitch/WebGLBuilds/Overview_v2/Overview_v2/* public/
- name: Upload to GitHub Pages artifact
uses: actions/upload-pages-artifact@v1
Expand Down

0 comments on commit d0f1e39

Please sign in to comment.