mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-23 22:15:49 +00:00
chore(workflows): update publish workflow to use wrangler
This commit is contained in:
parent
a91b3a81ef
commit
0fd2034b7f
9
.github/workflows/publish-dashboard.yaml
vendored
9
.github/workflows/publish-dashboard.yaml
vendored
@ -44,16 +44,13 @@ jobs:
|
|||||||
uses: rlespinasse/git-commit-data-action@v1.5.0
|
uses: rlespinasse/git-commit-data-action@v1.5.0
|
||||||
|
|
||||||
- name: Publish to Cloudflare Pages
|
- name: Publish to Cloudflare Pages
|
||||||
uses: cloudflare/pages-action@v1.5.0
|
uses: cloudflare/wrangler-action@v3
|
||||||
id: deployment
|
id: deployment
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
projectName: pockethost
|
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
directory: ./packages/dashboard/build
|
command: pages deploy ./packages/dashboard/build --project-name=pockethost --branch=${{ github.head_ref || github.ref_name }}
|
||||||
branch: ${{ github.head_ref || github.ref_name }}
|
|
||||||
wranglerVersion: '3'
|
|
||||||
|
|
||||||
- name: Discord feature branch notification
|
- name: Discord feature branch notification
|
||||||
if: github.ref_name != env.MAIN_BRANCH
|
if: github.ref_name != env.MAIN_BRANCH
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user