Skip to content

Commit 001e414

Browse files
Merge pull request #15 from immersive-web/init-gh-pages
add GHAction deploy
2 parents fae4e8d + c034e70 commit 001e414

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/deploy.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
12+
with:
13+
persist-credentials: false
14+
15+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
16+
run: make
17+
- name: Prepare Deploy folder
18+
run: mkdir deploy && rsync -av --exclude=.git --exclude=.gitignore --exclude=deploy . deploy/
19+
- name: Deploy 🚀
20+
uses: JamesIves/[email protected]
21+
with:
22+
BRANCH: gh-pages # The branch the action should deploy to.
23+
FOLDER: deploy # The folder the action should deploy.

0 commit comments

Comments
 (0)