Skip to content

Commit

Permalink
Merge pull request #1 from jbrunton/ci
Browse files Browse the repository at this point in the history
ci: add build step
  • Loading branch information
jbrunton authored Feb 4, 2024
2 parents cc5bc42 + 03ab604 commit 695dded
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish

on:
push:
branches:
- main

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: |
good-strategy-bad-strategy/good-strategy-bad-strategy.tex
work_in_root_file_dir: true
- name: Move PDFs
run: |
mv **/*.pdf dist
- uses: actions/configure-pages@v2
- uses: actions/upload-pages-artifact@v1
with:
path: './dist/'
- uses: actions/deploy-pages@v1
id: deployment
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Cheat Sheets

A series of cheat sheets I created to summarize books and concepts I've found useful.
44 changes: 44 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<html>
<head>
<link rel="stylesheet" href="https://unpkg.com/chota@latest" />
<style>
:root {
--color-primary: #2070f0; /* brand color */
}
</style>
</head>
<body>
<div class="container">
<h1>Cheat Sheets</h1>

<p>
A series of cheat sheets I created to summarize books and concepts I've
found useful.
</p>

<p>This repository is used to build and host the PDFs. Use the links below for navigation.</p>

<a
class="button primary outline icon"
href="https://www.jbrunton.com/topics/cheat-sheets/"
>
Browse Cheat Sheets &nbsp;
<img
src="https://icongr.am/fontawesome/search.svg?size=16&color=2070f0"
alt="icon"
/>
</a>

<a
class="button primary outline icon"
href="https://github.com/jbrunton/cheat-sheets/"
>
Browse Source &nbsp;
<img
src="https://icongr.am/fontawesome/github.svg?size=16&color=2070f0"
alt="icon"
/>
</a>
</div>
</body>
</html>

0 comments on commit 695dded

Please sign in to comment.