-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jbrunton/ci
ci: add build step
- Loading branch information
Showing
3 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
<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 | ||
<img | ||
src="https://icongr.am/fontawesome/github.svg?size=16&color=2070f0" | ||
alt="icon" | ||
/> | ||
</a> | ||
</div> | ||
</body> | ||
</html> |