Skip to content

Commit

Permalink
Merge pull request #711 from AArnott/workflow
Browse files Browse the repository at this point in the history
Fix and rename GitHub Action workflow
  • Loading branch information
daira committed Apr 14, 2024
2 parents 3b706de + 6a0a93c commit 2e9272e
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 17 deletions.
1 change: 0 additions & 1 deletion .github/actions/render-protocol-pdf/Dockerfile

This file was deleted.

7 changes: 0 additions & 7 deletions .github/actions/render-protocol-pdf/action.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/actions/render/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Render ZIPs and Zcash Protocol Specification
description: GitHub Action to compile ZIPs and Zcash Protocol Specification LaTeX documents
author: Deirdre Connolly
runs:
using: docker
# Runs `make all` or something like it
image: ../../../Dockerfile
16 changes: 10 additions & 6 deletions .github/workflows/render.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
name: Render pdfs
name: Build tex and rst

on: workflow_dispatch
on:
workflow_dispatch:
push:
branches:
- main

jobs:

render:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
- name: Checkout repository
uses: actions/checkout@v4.1.1

- name: Compile Zcash Protocol Specification
uses: ./.github/actions/render-protocol-pdf
- name: Compile ZIPs and Zcash Protocol Specification
uses: ./.github/actions/render

- uses: EndBug/add-and-commit@v9.1.3
with:
add: '**/*.pdf'
add: 'protocol/*.pdf *.html'
default_author: github_actions
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM debian:latest

RUN apt-get update \
&& apt-get install -y \
RUN apt-get update
RUN apt-get install -y \
gawk \
perl \
sed \
Expand All @@ -17,7 +17,10 @@ RUN apt-get update \
texlive-plain-generic \
texlive-bibtex-extra

RUN pip3 install rst2html5
RUN rm /usr/lib/python3.11/EXTERNALLY-MANAGED
RUN pip install rst2html5

ENV PATH=${PATH}:/root/.local/bin

WORKDIR "/zips"
ENTRYPOINT ["make", "all"]
Binary file modified protocol/blossom.pdf
Binary file not shown.
Binary file modified protocol/canopy.pdf
Binary file not shown.
Binary file modified protocol/heartwood.pdf
Binary file not shown.
Binary file modified protocol/nu5.pdf
Binary file not shown.
Binary file modified protocol/protocol.pdf
Binary file not shown.
Binary file modified protocol/sapling.pdf
Binary file not shown.

0 comments on commit 2e9272e

Please sign in to comment.