Skip to content

Commit edfe582

Browse files
Create main.yml for deploying on github pages
1 parent f35f368 commit edfe582

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Copy and Deploy
2+
on:
3+
# Triggers the workflow on push or pull request events but only for the master branch
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout 🛎️
13+
uses: actions/checkout@v2.3.1
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: |
17+
mkdir .public
18+
cp -a all-panels .public
19+
cp -a sampling .public
20+
cp -a quantization .public
21+
cp -a *.js .public
22+
cp -a index.html .public
23+
cp -a *.css .public
24+
cp -a README.md .public
25+
mv .public public
26+
27+
- name: Deploy 🚀
28+
uses: JamesIves/github-pages-deploy-action@4.1.4
29+
with:
30+
branch: gh-pages # The branch the action should deploy to.
31+
folder: public # The folder the action should deploy.

0 commit comments

Comments
 (0)