mirror of
https://github.com/dwmkerr/hacker-laws.git
synced 2025-12-17 04:35:12 +01:00
fix
This commit is contained in:
28
.github/workflows/build-on-pull-request.yaml
vendored
28
.github/workflows/build-on-pull-request.yaml
vendored
@@ -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
|
||||
|
||||
|
||||
3
.github/workflows/pages.yaml
vendored
3
.github/workflows/pages.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user