From 0bdaae8634cd67ed9d288529ee8ef3901963e4ac Mon Sep 17 00:00:00 2001 From: dsheng1026 Date: Fri, 27 Sep 2024 22:01:55 -0400 Subject: [PATCH] compile test with suggested tool --- .github/workflows/build.yaml | 41 --------------------------------- .github/workflows/draft-pdf.yml | 24 +++++++++++++++++++ 2 files changed, 24 insertions(+), 41 deletions(-) delete mode 100644 .github/workflows/build.yaml create mode 100644 .github/workflows/draft-pdf.yml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index fef9be3..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,41 +0,0 @@ -name: build - -on: - push: - branches: - - paper - -jobs: - R-CMD: - runs-on: ${{ matrix.config.os }} - - name: ${{ matrix.config.os }} (${{ matrix.config.r }}) - - strategy: - fail-fast: false - matrix: - config: - - {os: macos-latest, r: '4.4.0'} - - env: - R_REMOTES_NO_ERRORS_FROM_WARNINGS: true - RSPM: ${{ matrix.config.rspm }} - GITHUB_PAT: ${{ secrets.PLUTUS_ACTION}} - - steps: - - uses: actions/checkout@v3 - - uses: r-lib/actions/setup-r@v2-branch - with: - r-version: ${{ matrix.r }} - - uses: r-lib/actions/setup-pandoc@v2-branch - - uses: r-lib/actions/setup-tinytex@v2-branch - - - name: Install dependencies - run: | - install.packages(c("remotes", "rcmdcheck"), repos = "https://cloud.r-project.org") - remotes::install_deps(dependencies = TRUE) - shell: Rscript {0} - - - name: Check - run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") - shell: Rscript {0} \ No newline at end of file diff --git a/.github/workflows/draft-pdf.yml b/.github/workflows/draft-pdf.yml new file mode 100644 index 0000000..d6f1774 --- /dev/null +++ b/.github/workflows/draft-pdf.yml @@ -0,0 +1,24 @@ +name: Draft PDF +on: [push] + +jobs: + paper: + runs-on: ubuntu-latest + name: Paper Draft + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build draft PDF + uses: openjournals/openjournals-draft-action@master + with: + journal: joss + # This should be the path to the paper within your repo. + paper-path: paper/paper.md + - name: Upload + uses: actions/upload-artifact@v4 + 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: paper/paper.pdf \ No newline at end of file