-
-
Notifications
You must be signed in to change notification settings - Fork 267
45 lines (39 loc) · 1.04 KB
/
Copy pathbuild.yml
File metadata and controls
45 lines (39 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Old Build PDF
on:
pull_request:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Fix permissions before build
run: |
sudo chown -R 1000:1000 ${{ github.workspace }}
- name: Build PDF in devcontainer
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/happi/thebeambook-devcontainer:latest
options: |
--user builder
-v ${{ github.workspace }}:/workspaces/theBeamBook
-w /workspaces/theBeamBook
run: |
make
mv beam-book-a4.pdf beam-book.pdf
- name: Release PDF
uses: softprops/action-gh-release@v2
with:
files: |
beam-book.pdf