-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 881 Bytes
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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: List files in HTML directory
run: dir HTML
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: HTML