Skip to content
book

GitHub Action

Re:VIEW PDF Generator

v0.10 Latest version

Re:VIEW PDF Generator

book

Re:VIEW PDF Generator

builds PDF from Re:VIEW repository and uploads as Artifacts

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Re:VIEW PDF Generator

uses: takahashim/review-pdf-generator-action@v0.10

Learn more about this action in takahashim/review-pdf-generator-action

Choose a version

Re:VIEW PDF Generator Action

This is a GitHub Action for Re:VIEW repository: builds PDF and uploads as Artifacts.

Name: takahashim/review-pdf-generator-action

Usage

name: build Re:VIEW PDF
on: [push]
jobs:
  build:
    name: generate PDF
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: build PDF
      uses: takahashim/review-pdf-generator-action@master
    - name: upload as Artifacts
      uses: takahashim/review-pdf-generator-action/upload-artifact@master

about upload-artifact

upload-artifact is a copy of official upload-artifact action.

The changes are:

  • inputs name and path is not required
  • default path is build/output.pdf

(in Japanese)

これはRe:VIEWリポジトリ用のGitHub Actionで、PDFをビルドしてArtifactsとして保存するものです。

GitHub Actionsのbeta版に対応しています(現在はbeta版にsign upしている方のみ利用可能です)。

使い方

以下のようなYAMLファイルを .github/workflows/main.yml ファイルなどに置きます。

name: build Re:VIEW PDF
on: [push]
jobs:
  build:
    name: generate PDF
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: build PDF
      uses: takahashim/review-pdf-generator-action@master
    - name: upload as Artifacts
      uses: takahashim/review-pdf-generator-action/upload-artifact@master

upload-artifactについて

upload-artifactofficial upload-artifact actionをコピーしたものです。

違いは以下になります:

  • inputs の namepath が省略可になっています
  • デフォルトの pathbuild/output.pdf になっています(Re:VIEW PDF Generator Actionの出力先に揃えています)