fixup: Ask for tex output #65
Workflow file for this run
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
on: | ||
push: | ||
branches: | ||
- main | ||
- paper.md | ||
- paper.md-* | ||
- joss | ||
- joss-* | ||
pull_request: | ||
branches: | ||
- main | ||
- paper.md | ||
jobs: | ||
draft: | ||
runs-on: ubuntu-latest | ||
name: Paper Draft | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build draft PDF | ||
uses: openjournals/[email protected] | ||
with: | ||
journal: joss | ||
# This should be the path to the paper within your repo. | ||
paper-path: joss/paper.md | ||
- name: Upload | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: paper | ||
# This is the output path where Pandoc will write the compiled | ||
# PDF. Note, this should be the same directory as the input | ||
# paper.md | ||
path: joss/paper.pdf | ||
arxiv: | ||
runs-on: ubuntu-latest | ||
name: LaTeX files for arXiv | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build finalised PDF | ||
uses: xuanxu/publishing-artifacts-action@main | ||
with: | ||
journal: joss | ||
# This should be the path to the paper within your repo. | ||
paper-path: joss/paper.md | ||
args: | ||
- "-o jats,pdf,tex" | ||
- name: Tree | ||
shell: bash | ||
run: | | ||
tree . | ||
- name: Upload | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: arxiv | ||
# This is the output path where Pandoc will write the compiled | ||
# PDF. Note, this should be the same directory as the input | ||
# paper.md | ||
path: joss/paper.tex | ||
# name: Open Journal Paper's LaTeX source for arXiv submission | ||
# description: Compile and generate Paper metadata | ||
# inputs: | ||
# issue_id: | ||
# description: The review issue id for the paper | ||
# required: true | ||
# default: "06035" | ||
# repository_url: | ||
# description: The repository URL of the submission containing the paper file | ||
# required: true | ||
# default: "https://github.com/musoke/UltraDark.jl" | ||
# branch: | ||
# description: Git branch where the paper is located | ||
# required: false | ||
# default: "joss" | ||
# journal: | ||
# description: The journal data to use for the paper. Default is 'joss'. | ||
# required: false | ||
# default: joss | ||
# journal_template: | ||
# description: The journal template to compile the paper with. Default is 'joss'. | ||
# required: false | ||
# default: joss | ||
# compile_mode: | ||
# description: Compile a draft PDF or a final accepted paper. Possible values are 'draft' or 'accepted'. | ||
# required: false | ||
# default: draft | ||
# outputs: | ||
# pdf_path: | ||
# description: "Path to the generated PDF file" | ||
# value: ${{ steps.compilation-result.outputs.paper_pdf_path }} | ||
# jats_path: | ||
# description: "Path to the generated JATS file" | ||
# value: ${{ steps.compilation-result.outputs.paper_jats_path }} | ||
# crossref_path: | ||
# description: "Path to the generated Crossref XML file" | ||
# value: ${{ steps.compilation-result.outputs.paper_crossref_path }} | ||
# citation_file_path: | ||
# description: "Path to the generated CITATION.cff file" | ||
# value: ${{ steps.compilation-result.outputs.citation_file_path }} | ||
# paper_file_path: | ||
# description: "Path to the paper's .md/.tex source file" | ||
# value: ${{ steps.paper-finder.outputs.paper_file_path }} | ||
# paper_title: | ||
# description: "Title of the paper" | ||
# value: ${{ steps.paper-finder.outputs.paper_title }} | ||
# track_name: | ||
# description: "Parameterized name of the paper's track" | ||
# value: ${{ steps.paper-finder.outputs.track_name }} | ||
# runs: | ||
# using: "composite" | ||
# steps: | ||
# - name: Install Ruby | ||
# uses: ruby/setup-ruby@v1 | ||
# with: | ||
# ruby-version: 3.3.0 | ||
# bundler-cache: true | ||
# cache-version: paper-files | ||
# bundler: Gemfile.lock | ||
# working-directory: ${{ github.action_path }} | ||
# - name: Find paper file | ||
# id: paper-finder | ||
# shell: bash | ||
# env: | ||
# ISSUE_ID: ${{ inputs.issue_id }} | ||
# REPO_URL: ${{ inputs.repository_url }} | ||
# PAPER_BRANCH: ${{ inputs.branch }} | ||
# JOURNAL_ALIAS: ${{ inputs.journal }} | ||
# COMPILE_MODE: ${{ inputs.compile_mode }} | ||
# BUNDLE_GEMFILE: ${{ github.action_path }}/Gemfile | ||
# run: | | ||
# bundle exec ruby ${{ github.action_path }}/get_paper.rb | ||
# - name: Build paper artifacts | ||
# id: build-paper | ||
# uses: xuanxu/publishing-artifacts-action@main | ||
# with: | ||
# journal: ${{ inputs.journal_template }} | ||
# paper-path: ${{ steps.paper-finder.outputs.paper_file_path }} | ||
# args: ${{steps.paper-finder.outputs.inara_args}} | ||
# - name: Check results | ||
# id: compilation-result | ||
# shell: bash | ||
# run: | | ||
# ruby ${{ github.action_path }}/check_result.rb ${{ steps.paper-finder.outputs.paper_file_path }} pdf,crossref,jats | ||
# branding: | ||
# icon: file-text | ||
# color: blue |