diff --git a/.Rbuildignore b/.Rbuildignore index be49b2a4..0818b43a 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,5 +1,4 @@ ^_pkgdown\.yml$ -^docs$ ^pkgdown$ ^.*\.Rproj$ ^\.Rproj\.user$ diff --git a/.github/.gitignore b/.github/.gitignore deleted file mode 100644 index 0c817eda..00000000 --- a/.github/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -*.html -*.rds diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml deleted file mode 100644 index fc7e9874..00000000 --- a/.github/workflows/pkgdown.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples -# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help -on: - push: - branches: [develop] - # pull_request: - # branches: [develop] - - # build and deploy when we publish a GitHub release - # release: - # types: [published] - - # allow manual action trigger - workflow_dispatch: - -name: pkgdown - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# Also, cancel in-progress runs. -# concurrency: -# group: "pkgdown" -# cancel-in-progress: true - -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.GITHUB_TOKEN }} - permissions: - contents: write - steps: - - uses: actions/checkout@v4 - - - 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(dest_dir = "docs", new_process = TRUE, clean = TRUE, install = TRUE) - shell: Rscript {0} - - - name: Deploy to GitHub pages 🚀 - # Don’t deploy for pull requests - if: github.event_name != 'pull_request' - uses: JamesIves/github-pages-deploy-action@v4.5.0 - with: - clean: true - branch: gh-pages - folder: docs diff --git a/.github/workflows/pr-commands.yaml b/.github/workflows/pr-commands.yaml deleted file mode 100644 index 38f070cc..00000000 --- a/.github/workflows/pr-commands.yaml +++ /dev/null @@ -1,51 +0,0 @@ -on: - issue_comment: - types: [created] -name: Commands -jobs: - document: - if: startsWith(github.event.comment.body, '/document') - name: document - runs-on: macOS-latest - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v4 - - uses: r-lib/actions/pr-fetch@develop - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - uses: r-lib/actions/setup-r@develop - - name: Install dependencies - run: Rscript -e 'install.packages(c("remotes", "roxygen2"))' -e 'remotes::install_deps(dependencies = TRUE)' - - name: Document - run: Rscript -e 'roxygen2::roxygenise()' - - name: commit - run: | - git add man/\* NAMESPACE - git commit -m 'Document' - - uses: r-lib/actions/pr-push@develop - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - style: - if: startsWith(github.event.comment.body, '/style') - name: style - runs-on: macOS-latest - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v4 - - uses: r-lib/actions/pr-fetch@develop - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - uses: r-lib/actions/setup-r@develop - - name: Install dependencies - run: Rscript -e 'install.packages("styler")' - - name: Style - run: Rscript -e 'styler::style_pkg()' - - name: commit - run: | - git add \*.R - git commit -m 'Style' - - uses: r-lib/actions/pr-push@develop - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index fa9cec06..fd15c58c 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,7 @@ TADA.Rproj _snaps testing_log.txt + +# for automated github actions +*.html +*.rds diff --git a/_pkgdown.yml b/_pkgdown.yml deleted file mode 100644 index 00d92b56..00000000 --- a/_pkgdown.yml +++ /dev/null @@ -1,4 +0,0 @@ -url: "usepa.github.io/TADA/" -template: - bootstrap: 5 - bootswatch: cerulean