This commit is contained in:
Dave Kerr
2025-03-11 11:00:46 +00:00
parent 4d795efb0c
commit 3f730a8538
2 changed files with 20 additions and 11 deletions

View File

@@ -1,18 +1,27 @@
# This pipeline builds the PDF ebook on any pull request to master.
name: "Build PDF"
name: "Validate Pull Request"
on:
pull_request:
branches:
- master
jobs:
prepare-pdf:
# Focal Fossa. Please don't use 'latest' tags, it's an anti-pattern.
runs-on: ubuntu-20.04
test-website-build:
runs-on: ubuntu-24.04
steps:
# Checkout the code.
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Test Website Build
run: |
cd .github/website
make install
make build
cp -r build/. '../pages'
ls -al "../pages"
prepare-pdf:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
# Set a descriptive version. For PRs it'll be the short sha.
- name: Set Version
@@ -41,3 +50,4 @@ jobs:
with:
name: hacker-laws.md
path: hacker-laws.md

View File

@@ -3,8 +3,7 @@ name: Deploy to Pages
on:
# Runs on pushes targeting the default branch (or runs manually).
push:
# branches: [$default-branch]
branches: ['chore/cleanup'] # we're deploying from a build branch for now.
branches: [$default-branch]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages