Skip to content

Commit ce7cc52

Browse files
committed
Deploy to GitHub Pages
1 parent 945e42f commit ce7cc52

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/deploy.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# Trigger the workflow every time you push to the `main` branch
5+
# Using a different branch name? Replace `main` with your branch’s name
6+
push:
7+
branches: [ main ]
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
9+
workflow_dispatch:
10+
11+
# Allow this job to clone the repo and create a page deployment
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v4
23+
- name: Install, build, and upload your site
24+
uses: withastro/action@v3
25+
26+
deploy:
27+
needs: build
28+
runs-on: ubuntu-latest
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
32+
steps:
33+
- name: Deploy to GitHub Pages
34+
id: deployment
35+
uses: actions/deploy-pages@v4

astro.config.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import tailwind from '@astrojs/tailwind';
77

88
// https://astro.build/config
99
export default defineConfig({
10+
site: 'https://zfox23.github.io',
11+
base: 'spatial-photo-webxr-viewer',
1012
integrations: [react(), tailwind()],
1113
vite: {
1214
server: {

0 commit comments

Comments
 (0)