diff --git a/.github/workflows/check-other.yml b/.github/workflows/check-other.yml deleted file mode 100644 index 96720d7..0000000 --- a/.github/workflows/check-other.yml +++ /dev/null @@ -1,20 +0,0 @@ -# commits can contain win, rhub or deploy text for specific actions -name: Check-win-builder -on: push -jobs: - - win-builder-checks: - runs-on: ubuntu-18.04 - container: rocker/tidyverse:latest - if: "!contains(github.event.commits[0].message, '[skip other]')" - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Send package to win-builder - shell: Rscript {0} - run: | - if (!require("devtools")) install.packages('devtools', repos = 'http://cran.rstudio.com') - devtools::check_win_devel() - devtools::check_win_oldrelease() - devtools::check_win_release() diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml deleted file mode 100644 index 42c185d..0000000 --- a/.github/workflows/check.yml +++ /dev/null @@ -1,96 +0,0 @@ -# commits can contain win, rhub or deploy text for specific actions -name: Check -on: push -jobs: - check-r-verse-latest: - runs-on: ubuntu-18.04 - container: rocker/verse:latest - steps: - - name: Checkout repository - uses: actions/checkout@main - - - name: Install dependencies - shell: Rscript {0} - run: | - remotes::install_deps(dependencies = TRUE) - - - name: Check 🔍 - shell: Rscript {0} - run: | - devtools::check(cran = TRUE, vignettes = TRUE) - - check-r-verse-devel: - runs-on: ubuntu-18.04 - container: rocker/verse:devel - steps: - - name: Checkout repository - uses: actions/checkout@main - - - name: Install dependencies - shell: Rscript {0} - run: | - remotes::install_deps(dependencies = TRUE) - - - name: Check 🔍 - shell: Rscript {0} - run: | - devtools::check(cran = TRUE, vignettes = TRUE) - - check-r-devel-san: - runs-on: ubuntu-18.04 - container: rocker/r-devel-san - steps: - - name: Checkout repository 🛎 - uses: actions/checkout@v2 - - - name: Install dependencies - shell: Rscript {0} - run: | - install.packages(c("Rcpp", "knitr", "rmarkdown", "tinytest", "rcmdcheck")) - - - name: Check 🔍 - shell: Rscript {0} - run: | - rcmdcheck::rcmdcheck( - args = c("--as-cran", "--ignore-vignettes"), - build_args = "--no-build-vignettes", - error_on = "warning" - ) - - check-r-devel-ubsan-clang: - runs-on: ubuntu-18.04 - container: rocker/r-devel-ubsan-clang - steps: - - name: Checkout repository 🛎 - uses: actions/checkout@v2 - - - name: Install dependencies - shell: Rscript {0} - run: | - install.packages(c("Rcpp", "knitr", "rmarkdown", "tinytest", "rcmdcheck")) - - - name: Check 🔍 - shell: Rscript {0} - run: | - rcmdcheck::rcmdcheck( - args = c("--as-cran", "--ignore-vignettes"), - build_args = "--no-build-vignettes", - error_on = "warning" - ) - - check-r-verse-3-6: - runs-on: ubuntu-18.04 - container: rocker/verse:3.6.3 - steps: - - name: Checkout repository 🛎 - uses: actions/checkout@v2 - - - name: Install dependencies - shell: Rscript {0} - run: | - remotes::install_deps(dependencies = TRUE) - - - name: Check 🔍 - shell: Rscript {0} - run: | - devtools::check(cran = TRUE, vignettes = TRUE) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 5d8a923..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Main - -on: - push: - tags: - - "v*.*.*" -jobs: - pkgdown: - runs-on: ubuntu-latest - # Only restrict concurrency for non-PR jobs - concurrency: - group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} - env: - GITHUB_PAT: ${{ secrets.GH_TOKEN }} - steps: - - uses: actions/checkout@v2 - - - uses: r-lib/actions/setup-pandoc@v2 - - - uses: r-lib/actions/setup-r@v2 - with: - use-public-rspm: true - - - uses: r-lib/actions/setup-r-dependencies@v2 - with: - extra-packages: any::pkgdown, local::. - needs: website - - - name: Build site - run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) - shell: Rscript {0} - - - name: Deploy Docs 🚀 - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GH_TOKEN }} - publish_dir: docs - - release: - name: Create Release - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Prepare release vars - run: | - echo "PKGNAME=$(sed -n 's/Package: *\([^ ]*\)/\1/p' DESCRIPTION)" >> $GITHUB_ENV - echo "PKGVERS=$(sed -n 's/Version: *\([^ ]*\)/\1/p' DESCRIPTION)" >> $GITHUB_ENV - echo "$(sed -n '2,/^$/p' NEWS.md)" > news.txt - - - name: Release - uses: softprops/action-gh-release@v1 - with: - tag_name: "v${{ env.PKGVERS }}" - name: "${{ env.PKGNAME }} ${{ env.PKGVERS }}" - body_path: news.txt - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} # This token is provided by Actions, you do not need to create your own token