-
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.
- Loading branch information
Showing
2 changed files
with
71 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,38 @@ | ||
name: Build redirection page to PDF file | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
name: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Add redirection page | ||
run: | | ||
cd ${{ inputs.name }} | ||
cat <<EOF > index.html | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="refresh" content="0; url=index.pdf"> | ||
</head> | ||
<body> | ||
<p>If you are not redirected automatically, follow this <a href="index.pdf">link</a>.</p> | ||
</body> | ||
</html> | ||
EOF | ||
- name: Upload as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.name }} | ||
path: ${{ inputs.name }} |
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,33 @@ | ||
name: Update repository | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
find-talks: | ||
name: Find all talks | ||
runs-on: ubuntu-latest | ||
outputs: | ||
pdfs: ${{ steps.find-pdfs.outputs.matrix }} | ||
|
||
steps: | ||
- name: Find all PDF talks | ||
id: find-pdfs | ||
run: | | ||
find . -name 'index.pdf' \ | ||
| xargs dirname \ | ||
| xargs basename \ | ||
| jq -R \ | ||
| jq -cs '{ "talk": . }' \ | ||
> matrix.json | ||
echo "matrix=$(cat matrix.json)" >> $GITHUB_OUTPUT | ||
build-pdfs: | ||
name: Build PDF talks | ||
needs: | ||
- find-talks | ||
strategy: | ||
matrix: ${{ fromJson(needs.find-talks.outputs.pdfs) }} | ||
uses: ./.github/workflows/build-pdf.yml | ||
with: | ||
name: ${{ matrix.talk }} | ||
|