Skip to content

Commit 0ead1d7

Browse files
committed
Add deployment to GitHub Pages
1 parent 5719b12 commit 0ead1d7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ts-pages.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy TypeScript website to GitHub Pages
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
workflow_call:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- name: Download repository
13+
uses: actions/checkout@v4
14+
- name: Build TypeScript
15+
run: tsc
16+
- name: Compress & Upload pages artifact
17+
uses: actions/upload-pages-artifact@v3
18+
with:
19+
path: "."
20+
21+
deploy:
22+
runs-on: ubuntu-latest
23+
needs: build
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
steps:
28+
- name: Deploy to GitHub Pages
29+
id: deployment
30+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)