Skip to content

Commit

Permalink
feat(ci): add studio workflow to blank template
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Nov 9, 2023
1 parent af2c2bf commit 598b9a1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions templates/studio-template-empty/.github/workflows/studio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Astro Studio Sync
env:
ASTRO_STUDIO_PROJECT_ID: ${{ secrets.ASTRO_STUDIO_PROJECT_ID }}
ASTRO_STUDIO_APP_TOKEN: ${{secrets.ASTRO_STUDIO_APP_TOKEN }}
on:
push:
branches:
- main
jobs:
Sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Astro Studio CLI
run: npm i leaf-simplest-round-ride@latest
- name: Link to studio project
run: npx studio link --project-id ${{ env.ASTRO_STUDIO_PROJECT_ID }} --app-token ${{ env.ASTRO_STUDIO_APP_TOKEN }}
- name: Sync with studio
run: npx studio sync

0 comments on commit 598b9a1

Please sign in to comment.