-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 1000 Bytes
/
build-site.yml
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
33
34
35
36
37
38
39
40
41
42
name: GH Pages Deploy
on:
push:
branches: ['*']
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
# - name: Install Cargo 🦀
# run: curl https://sh.rustup.rs -sSf | sh -y
- name: Install marmite 🫙
run: cargo install marmite
# put site in markout to stay consistent with existing pages/cloudflare configuration
- name: Build site 🏗️
run: marmite pype.dev markout -vvvv
- name: List files on site 📂
run: ls -R site
- name: Github Pages
uses: crazy-max/[email protected]
with:
target_branch: markout
build_dir: markout
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}