Skip to content

Commit

Permalink
chore: update studio action
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Feb 12, 2024
1 parent 8a62d3b commit c8b6dd2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
20 changes: 12 additions & 8 deletions templates/studio-template-blog/.github/workflows/studio.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
name: Astro Studio Sync
name: Astro Studio
env:
ASTRO_STUDIO_PROJECT_ID: ${{ secrets.ASTRO_STUDIO_PROJECT_ID }}
ASTRO_STUDIO_APP_TOKEN: ${{secrets.ASTRO_STUDIO_APP_TOKEN }}
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
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
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
- run: pnpm install
- uses: withastro/action-studio@main

20 changes: 12 additions & 8 deletions templates/studio-template-empty/.github/workflows/studio.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
name: Astro Studio Sync
name: Astro Studio
env:
ASTRO_STUDIO_PROJECT_ID: ${{ secrets.ASTRO_STUDIO_PROJECT_ID }}
ASTRO_STUDIO_APP_TOKEN: ${{secrets.ASTRO_STUDIO_APP_TOKEN }}
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
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
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
- run: pnpm install
- uses: withastro/action-studio@main

0 comments on commit c8b6dd2

Please sign in to comment.