Skip to content

Commit 1e9d89b

Browse files
committed
Added CI script
1 parent e9a3841 commit 1e9d89b

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build and Deploy
2+
on:
3+
repository_dispatch:
4+
types: [curriculum_updated]
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Clone Curriculum
14+
run: git clone https://github.com/razorblade23/the-python-ledger.git ../the-python-ledger
15+
- name: Install and Build
16+
run: |
17+
npm install
18+
npm run build
19+
- name: Deploy
20+
uses: peaceiris/actions-gh-pages@v3
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
publish_dir: ./build

0 commit comments

Comments
 (0)