Skip to content

Commit

Permalink
feat: studio ci action
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Nov 2, 2023
1 parent f41f44f commit ca137bf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions templates/studio-template-blog/.github/workflows/studio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Astro Studio Sync
env:
ASTRO_STUDIO_SESSION_ID: ${{ secrets.ASTRO_STUDIO_SESSION_ID }}
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: Log in to studio
run: npx studio login --session ${{ env.ASTRO_STUDIO_SESSION_ID }}
- name: Link to studio project
run: npx studio link --project-id ${{ env.ASTRO_STUDIO_PROJECT_ID }}
- name: Sync with studio
run: npx studio sync

0 comments on commit ca137bf

Please sign in to comment.