Test deploys
This commit is contained in:
parent
bf799b38e7
commit
e5bc16e676
26
.github/workflows/deploy.yml
vendored
26
.github/workflows/deploy.yml
vendored
@ -8,6 +8,9 @@ jobs:
|
|||||||
name: Development Build
|
name: Development Build
|
||||||
if: github.ref != 'refs/heads/main'
|
if: github.ref != 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
deployments: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout main
|
- name: Checkout main
|
||||||
@ -19,10 +22,23 @@ jobs:
|
|||||||
BUILD_ONLY: true
|
BUILD_ONLY: true
|
||||||
BUILD_FLAGS: --drafts
|
BUILD_FLAGS: --drafts
|
||||||
|
|
||||||
|
- name: Publish to Cloudflare Pages
|
||||||
|
uses: cloudflare/pages-action@v1
|
||||||
|
with:
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
projectName: ewpratten
|
||||||
|
directory: public
|
||||||
|
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
wranglerVersion: '3'
|
||||||
|
|
||||||
build_prod:
|
build_prod:
|
||||||
name: Production Build
|
name: Production Build
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
deployments: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout main
|
- name: Checkout main
|
||||||
@ -32,3 +48,13 @@ jobs:
|
|||||||
uses: shalzz/zola-deploy-action@v0.18.0
|
uses: shalzz/zola-deploy-action@v0.18.0
|
||||||
env:
|
env:
|
||||||
BUILD_ONLY: true
|
BUILD_ONLY: true
|
||||||
|
|
||||||
|
- name: Publish to Cloudflare Pages
|
||||||
|
uses: cloudflare/pages-action@v1
|
||||||
|
with:
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
projectName: ewpratten
|
||||||
|
directory: public
|
||||||
|
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
wranglerVersion: '3'
|
Loading…
x
Reference in New Issue
Block a user