Skip to content

Commit 06eae59

Browse files
committed
deploy action
1 parent 47be8ae commit 06eae59

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: Deploy
2+
3+
on:
4+
push: {branches: [main]}
5+
schedule: [{cron: "15 10 * * *"}]
6+
workflow_dispatch: {}
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
cache: yarn
17+
- run: yarn --frozen-lockfile
18+
- run: yarn build
19+
- name: Deploy to Observable Cloud
20+
run: yarn deploy -- --message "$(git log -1 --pretty=%s)"
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
OBSERVABLE_TOKEN: ${{ secrets.OBSERVABLE_TOKEN }}

0 commit comments

Comments
 (0)