Skip to content

Commit

Permalink
Initial Zola site without modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
casibbald committed Dec 26, 2024
1 parent c6e69c9 commit bbec185
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: GH-Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
pull_request:
branches: ["feature/*"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v2
- name: build_and_deploy
uses: shalzz/[email protected]
env:
BUILD_DIR: website
# Target branch
PAGES_BRANCH: gh-pages
# Provide personal access token
TOKEN: ${{ secrets.GITHUB_TOKEN }}
website_dir: public
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
name: github-pages
path: website/public
retention-days: 365



# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

36 changes: 36 additions & 0 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# When pushed to master, run `cargo +nightly fmt --all` and open a PR.
name: rustfmt
on:
push:
# Limit to `master` because this action creates a PR
branches:
- master
- issues/*

jobs:
rustfmt_nightly:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install nightly toolchain with rustfmt available
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt

- run: rustfmt +nightly --edition 2018 $(find . -type f -iname *.rs)

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: rustfmt
signoff: true
title: rustfmt
body: |
Changes from `rustfmt +nightly --edition 2018 $(find . -type f -iname *.rs)`.
branch: rustfmt
# Delete branch when merged
delete-branch: true
16 changes: 16 additions & 0 deletions website/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# The URL the site will be built for
base_url = "https://weaveworks.org"

# Whether to automatically compile all Sass files in the sass directory
compile_sass = true

# Whether to build a search index to be used later on by a JavaScript library
build_search_index = true

[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true

[extra]
# Put all your custom variables here

0 comments on commit bbec185

Please sign in to comment.