Skip to content

Integrate Blog

Integrate Blog #16

Workflow file for this run

name: Deploy Cobalt
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Download and install Cobalt
run: |
$cobaltUrl = "https://github.com/cobalt-org/cobalt.rs/releases/download/v0.19.6/cobalt-v0.19.6-x86_64-pc-windows-msvc.zip"
Invoke-WebRequest -Uri $cobaltUrl -OutFile "cobalt.zip"
Expand-Archive cobalt.zip -DestinationPath "cobalt"
echo "$PWD\cobalt" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
shell: pwsh
- name: Build the Cobalt site
run: cobalt build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: HTML