Skip to content

Commit

Permalink
deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Oct 18, 2024
1 parent 47be8ae commit 06eae59
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy

on:
push: {branches: [main]}
schedule: [{cron: "15 10 * * *"}]
workflow_dispatch: {}

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn --frozen-lockfile
- run: yarn build
- name: Deploy to Observable Cloud
run: yarn deploy -- --message "$(git log -1 --pretty=%s)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OBSERVABLE_TOKEN: ${{ secrets.OBSERVABLE_TOKEN }}

0 comments on commit 06eae59

Please sign in to comment.