diff --git a/.github/workflows/publish-storybook.yml b/.github/workflows/publish-storybook.yml index 1a2c58a881..017e3c41de 100644 --- a/.github/workflows/publish-storybook.yml +++ b/.github/workflows/publish-storybook.yml @@ -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 @@ -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) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2bf45639e6..1fa468e558 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}