Skip to content

Commit

Permalink
added workflow for paper build
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderBarbie committed Sep 1, 2024
1 parent 0f0d5bf commit e2afaa1
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-paper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Draft PDF
on:
push:
paths:
- paper/**
- .github/workflows/draft-pdf.yml

jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
# This should be the path to the paper within your repo.
paper-path: paper.md
- name: Upload
uses: actions/upload-artifact@v4
with:
name: paper
# This is the output path where Pandoc will write the compiled
# PDF. Note, this should be the same directory as the input
# paper.md
path: paper.pdf

- name: Commit PDF to repository
uses: EndBug/add-and-commit@v9
with:
message: "(auto) Paper PDF Draft"
# This should be the path to the paper within your repo.
add: "paper.pdf" # 'paper/*.pdf' to commit all PDFs in the paper directory
6 changes: 5 additions & 1 deletion .github/workflows/pr-arm32v7.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: PiCar-X PR Build (RPI3)

on: [pull_request, workflow_dispatch]
on:
pull_request:
paths:
- PiCar-X/**
- .github/workflows/**.yml

env:
REGISTRY: ghcr.io
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr-arm64v8.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: PiCar-X PR Build (RPI4)

on: [pull_request, workflow_dispatch]
on:
pull_request:
paths:
- PiCar-X/**
- .github/workflows/**.yml

env:
REGISTRY: ghcr.io
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr-x64.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: PiCar-X PR Build

on: [pull_request, workflow_dispatch]
on:
pull_request:
paths:
- PiCar-X/**
- .github/workflows/**.yml

env:
REGISTRY: ghcr.io
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/push-arm32v7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
paths:
- PiCar-X/**
- .github/workflows/**.yml
workflow_dispatch:

env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/push-arm64v8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
paths:
- PiCar-X/**
- .github/workflows/**.yml
workflow_dispatch:

env:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/push-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
paths:
- PiCar-X/**
- .github/workflows/**.yml
workflow_dispatch:

env:
Expand Down Expand Up @@ -65,6 +68,8 @@ jobs:
needs: [integration-tests]
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.sha }}

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
Expand Down

0 comments on commit e2afaa1

Please sign in to comment.