Skip to content

Commit f310858

Browse files
committed
update badge
1 parent 55f53a4 commit f310858

File tree

2 files changed

+27
-12
lines changed

2 files changed

+27
-12
lines changed

.github/workflows/pkgdown.yaml

+26-11
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,50 @@
1-
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
55
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
68
release:
79
types: [published]
810
workflow_dispatch:
911

1012
name: pkgdown
1113

14+
permissions: read-all
15+
1216
jobs:
1317
pkgdown:
1418
runs-on: ubuntu-latest
19+
# Only restrict concurrency for non-PR jobs
20+
concurrency:
21+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
1522
env:
1623
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
24+
permissions:
25+
contents: write
1726
steps:
18-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v4
1928

20-
- uses: r-lib/actions/setup-pandoc@v1
29+
- uses: r-lib/actions/setup-pandoc@v2
2130

22-
- uses: r-lib/actions/setup-r@v1
31+
- uses: r-lib/actions/setup-r@v2
2332
with:
2433
use-public-rspm: true
2534

26-
- uses: r-lib/actions/setup-r-dependencies@v1
35+
- uses: r-lib/actions/setup-r-dependencies@v2
2736
with:
28-
extra-packages: pkgdown
37+
extra-packages: any::pkgdown, local::.
2938
needs: website
3039

31-
- name: Deploy package
32-
run: |
33-
git config --local user.name "$GITHUB_ACTOR"
34-
git config --local user.email "[email protected]"
35-
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
40+
- name: Build site
41+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
42+
shell: Rscript {0}
43+
44+
- name: Deploy to GitHub pages 🚀
45+
if: github.event_name != 'pull_request'
46+
uses: JamesIves/[email protected]
47+
with:
48+
clean: false
49+
branch: gh-pages
50+
folder: docs

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
| Build | DOI | Docs |
88
|---|---|---|
9-
|[![Build Status](https://travis-ci.org/floswald/psidR.svg)](https://travis-ci.org/floswald/psidR) | [![DOI](https://zenodo.org/badge/9247059.svg)](https://zenodo.org/badge/latestdoi/9247059) | [![DOCS](https://img.shields.io/badge/docs-Documentation-blue)](https://floswald.github.io/psidR)|
9+
[![R-CMD-check](https://github.com/floswald/psidR/actions/workflows/check-standard.yaml/badge.svg)](https://github.com/floswald/psidR/actions/workflows/check-standard.yaml) | [![DOI](https://zenodo.org/badge/9247059.svg)](https://zenodo.org/badge/latestdoi/9247059) | [![DOCS](https://img.shields.io/badge/docs-Documentation-blue)](https://floswald.github.io/psidR)|
1010

1111

1212
This R package provides a function to easily build panel data from PSID raw data.

0 commit comments

Comments
 (0)