Skip to content

Merge pull request #115 from time-machine-project/juhahenriksson-patc… #165

Merge pull request #115 from time-machine-project/juhahenriksson-patc…

Merge pull request #115 from time-machine-project/juhahenriksson-patc… #165

Workflow file for this run

name: Compile artifacts when pushing to any branch.
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: rlespinasse/[email protected]
- name: Create version number
run: echo "VERSION=commit-${{ env.GITHUB_SHA_SHORT }}" >> $GITHUB_ENV
- name: Build the Docker image that creates the RFC-PDFs
run: docker build $GITHUB_WORKSPACE/build -f $GITHUB_WORKSPACE/build/Dockerfile.single -t time-machine-project/publish_pdfs
- name: Create the drafts output directories
run: mkdir -p out/drafts
- name: Create the releases output directories
run: mkdir -p out/releases
- name: Create the draft PDFs
run:
docker run -e VERSION=${{ env.VERSION }} -v $GITHUB_WORKSPACE/files/drafts:/opt/input -v $GITHUB_WORKSPACE/out/drafts:/opt/output time-machine-project/publish_pdfs
- name: Create the release PDFs
run: docker run -e VERSION=${{ env.VERSION }} -v $GITHUB_WORKSPACE/files/releases:/opt/input -v $GITHUB_WORKSPACE/out/releases:/opt/output time-machine-project/publish_pdfs
- uses: actions/upload-artifact@v2
with:
name: rfc_pdf_files
path: out