Skip to content

Deploy all branches #50

Deploy all branches

Deploy all branches #50

Workflow file for this run

name: Publish on GitHub Pages
on:
push:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup Deno environment
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Build site
run: deno task build
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'target'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
- name: Publish
uses: cloudflare/pages-action@v1
env:
API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
apiToken: ${{ env.API_TOKEN }}
accountId: ${{ env.ACCOUNT_ID }}
projectName: probe-rs
directory: 'target'
gitHubToken: ${{ env.GITHUB_TOKEN }}