Fix incorrect RFC id in Tree (#125) #185
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
name: Compile artifacts when pushing to any branch. | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: rlespinasse/github-slug-action@v3.x | |
- 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 |