Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and rename GitHub Action workflow #711

Merged
merged 3 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.