|
1 | 1 | name: Upload Preview Deployment |
2 | 2 |
|
3 | 3 | on: |
4 | | - workflow_run: |
5 | | - workflows: [Build Preview Deployment] |
6 | | - types: |
7 | | - - completed |
| 4 | + workflow_run: |
| 5 | + workflows: [Build Preview Deployment] |
| 6 | + types: |
| 7 | + - completed |
8 | 8 |
|
9 | 9 | permissions: |
10 | | - actions: read |
11 | | - deployments: write |
12 | | - contents: read |
13 | | - pull-requests: write |
| 10 | + actions: read |
| 11 | + deployments: write |
| 12 | + contents: read |
| 13 | + pull-requests: write |
14 | 14 |
|
15 | 15 | jobs: |
16 | | - deploy-preview: |
17 | | - runs-on: ubuntu-latest |
18 | | - if: ${{ github.event.workflow_run.conclusion == 'success' }} |
19 | | - steps: |
20 | | - - name: Download build artifact |
21 | | - uses: actions/download-artifact@v4 |
22 | | - id: preview-build-artifact |
23 | | - with: |
24 | | - name: preview-build |
25 | | - path: build |
26 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
27 | | - run-id: ${{ github.event.workflow_run.id }} |
| 16 | + deploy-preview: |
| 17 | + runs-on: ubuntu-latest |
| 18 | + if: ${{ github.event.workflow_run.conclusion == 'success' }} |
| 19 | + steps: |
| 20 | + - name: Download build artifact |
| 21 | + uses: actions/download-artifact@v4 |
| 22 | + id: preview-build-artifact |
| 23 | + with: |
| 24 | + name: preview-build |
| 25 | + path: build |
| 26 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 27 | + run-id: ${{ github.event.workflow_run.id }} |
28 | 28 |
|
29 | | - - name: Deploy to Cloudflare Pages |
30 | | - uses: AdrianGonz97/refined-cf-pages-action@v1 |
31 | | - with: |
32 | | - apiToken: ${{ secrets.CF_API_TOKEN }} |
33 | | - accountId: ${{ secrets.CF_ACCOUNT_ID }} |
34 | | - githubToken: ${{ secrets.GITHUB_TOKEN }} |
35 | | - projectName: svelte-ux |
36 | | - deploymentName: Preview |
37 | | - directory: ${{ steps.preview-build-artifact.outputs.download-path }} |
| 29 | + - name: Deploy to Cloudflare Pages |
| 30 | + uses: AdrianGonz97/refined-cf-pages-action@v1 |
| 31 | + with: |
| 32 | + apiToken: ${{ secrets.CF_API_TOKEN }} |
| 33 | + accountId: ${{ secrets.CF_ACCOUNT_ID }} |
| 34 | + githubToken: ${{ secrets.GITHUB_TOKEN }} |
| 35 | + projectName: svelte-ux |
| 36 | + deploymentName: Preview |
| 37 | + directory: ${{ steps.preview-build-artifact.outputs.download-path }}/cloudflare |
0 commit comments