Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,52 @@
name: build and test

on: push
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: actions/setup-node@v4
with:
node-version: '20'

- run: npm install

- run: npm run build

- id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: build/

- uses: fifsky/html-to-pdf-action@master
if: github.event_name == 'pull_request'
with:
htmlFile: build/index.html
outputFile: build/register.pdf

- name: Upload the PDF as an artifact
if: github.event_name == 'pull_request'
id: pdf-artifact
uses: actions/upload-artifact@v4
with:
name: register
path: build/register.pdf

- name: Add artifact links to the pull request
if: github.event_name == 'pull_request'
uses: marocchino/sticky-pull-request-comment@v2
with:
message: |
Rendered register: <${{ steps.pdf-artifact.outputs.artifact-url}}>

deploy:
if: github.ref_name == github.event.repository.default_branch
environment:
Expand Down
Loading