Skip to content

Commit

Permalink
Move to wrangler-action (#4411)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding authored Nov 15, 2024
1 parent 7432f62 commit 38bdbb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,12 @@ jobs:
run: rm -f ./storybook-static/preview-stats.json

- name: Publish
uses: cloudflare/pages-action@v1
uses: cloudflare/wrangler-action@v3
id: publish
with:
apiToken: ${{ secrets.CLOUDFLARE_SALT_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_SALT_ACCOUNT_ID }}
projectName: "saltdesignsystem-storybook"
directory: ./storybook-static
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ steps.run_metadata.outputs.branchName }}
command: pages deploy ./storybook-static --project-name=saltdesignsystem-storybook --branch=${{ steps.run_metadata.outputs.branchName }}

- name: Update deploy status (success)
uses: actions/github-script@v7
Expand All @@ -95,7 +92,7 @@ jobs:
state: "success",
description: "Successfully deployed",
context: "Storybook",
target_url: "${{ steps.publish.outputs.url }}"
target_url: "${{ steps.publish.outputs.alias }}"
});
- name: Update deploy status (failure)
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@ jobs:
env:
NODE_OPTIONS: "--max_old_space_size=6144"
- name: Publish Storybook
uses: cloudflare/pages-action@v1
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_SALT_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_SALT_ACCOUNT_ID }}
projectName: "saltdesignsystem-storybook"
directory: ./storybook-static
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.head_ref || github.ref_name }}
command: pages deploy ./storybook-static --project-name saltdesignsystem-storybook --branch ${{ github.head_ref || github.ref_name }}

0 comments on commit 38bdbb2

Please sign in to comment.