Skip to content

Commit 8f55a54

Browse files
committed
Auto Compile TypeScript File
1 parent 98212d4 commit 8f55a54

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/work.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
push:
3+
workflow_dispatch:
4+
pull_request:
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: setup node
11+
uses: actions/setup-node@v2
12+
with:
13+
node-version: '16'
14+
- name: Install dependencies
15+
run: npm install typescript
16+
- name: compile
17+
run: npx tsc
18+
- name: build with Jekyll
19+
uses: actions/jekyll-build-pages@v1
20+
- name: upload artifacts
21+
uses: actions/upload-pages-artifact@v3
22+
with:
23+
name: github-pages
24+
path: ./_site
25+
deploy:
26+
runs-on: ubuntu-latest
27+
needs: build
28+
steps:
29+
- uses: actions/deploy-pages@v4
30+
with:
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
permissions:
33+
contents: read
34+
pages: write
35+
id-token: write

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Script_ts/*.

0 commit comments

Comments
 (0)