Skip to content

Commit 26c2ecd

Browse files
fixing the GHA for deployment
1 parent 6f93721 commit 26c2ecd

File tree

1 file changed

+18
-30
lines changed

1 file changed

+18
-30
lines changed

.github/workflows/basic_checks.yaml

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@ name: Check, build, and push image
33
on: [push, pull_request]
44

55
env:
6-
cache-version: v4
6+
cache-version: v1
77

88
jobs:
99
r-build-and-check:
1010
runs-on: ubuntu-latest
1111
container: bioconductor/bioconductor_docker:devel
12+
1213
env:
13-
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
14+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: TRUE
1415
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
CRAN: https://packagemanager.posit.co/cran/__linux__/jammy/latest
17+
1518
steps:
16-
- uses: actions/checkout@v2
19+
- name: Checkout Repository
20+
uses: actions/checkout@v4
1721

1822
- name: Query dependencies and update old packages
1923
run: |
@@ -29,16 +33,6 @@ jobs:
2933
key: ${{ env.cache-version }}-${{ runner.os }}-r-${{ hashFiles('.github/depends.Rds') }}
3034
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-r-
3135

32-
# This lets us augment with additional dependencies
33-
- name: Install system dependencies (Linux)
34-
if: runner.os == 'Linux'
35-
env:
36-
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
37-
uses: r-lib/actions/setup-r-dependencies@v2
38-
with:
39-
extra-packages: any::rcmdcheck
40-
pak-version: devel
41-
4236
- name: Install dependencies
4337
run: |
4438
BiocManager::repositories()
@@ -49,10 +43,9 @@ jobs:
4943
- name: Check
5044
env:
5145
_R_CHECK_CRAN_INCOMING_REMOTE_: false
52-
run: rcmdcheck::rcmdcheck(args = c("--no-manual"), error_on = "warning", check_dir = "check")
46+
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning", check_dir = "check")
5347
shell: Rscript {0}
5448

55-
5649
- name: Build pkgdown
5750
run: |
5851
PATH=$PATH:$HOME/bin/ Rscript -e 'pkgdown::build_site(".")'
@@ -64,11 +57,12 @@ jobs:
6457
apt-get -y install rsync
6558
6659
- name: Deploy 🚀
67-
uses: JamesIves/github-pages-deploy-action@releases/v4
60+
uses: JamesIves/github-pages-deploy-action@v4
6861
with:
69-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
7063
BRANCH: gh-pages # The branch the action should deploy to.
7164
FOLDER: docs # The folder the action should deploy.
65+
7266
docker-build-and-push:
7367
#needs: r-build-and-check
7468
runs-on: ubuntu-latest
@@ -80,8 +74,8 @@ jobs:
8074
id-token: write
8175

8276
steps:
83-
- name: Checkout repository
84-
uses: actions/checkout@v2
77+
- name: Checkout Repository
78+
uses: actions/checkout@v4
8579

8680
- name: Set Environment Variables
8781
run: |
@@ -96,25 +90,20 @@ jobs:
9690
run: |
9791
env
9892
99-
10093
# Install the cosign tool except on PR
10194
# https://github.com/sigstore/cosign-installer
10295
- name: Install cosign
10396
if: github.event_name != 'pull_request'
104-
uses: sigstore/cosign-installer@1e95c1de343b5b0c23352d6417ee3e48d5bcd422
105-
with:
106-
cosign-release: 'v1.4.0'
97+
uses: sigstore/cosign-installer@v3
10798

108-
109-
# Workaround: https://github.com/docker/build-push-action/issues/461
11099
- name: Setup Docker buildx
111-
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
100+
uses: docker/setup-buildx-action@v3
112101

113102
# Login against a Docker registry except on PR
114103
# https://github.com/docker/login-action
115104
- name: Log into registry ${{ env.REGISTRY }}
116105
if: github.event_name != 'pull_request'
117-
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
106+
uses: docker/login-action@v3
118107
with:
119108
registry: ${{ env.REGISTRY }}
120109
username: ${{ github.actor }}
@@ -124,19 +113,18 @@ jobs:
124113
# https://github.com/docker/metadata-action
125114
- name: Extract Docker metadata
126115
id: meta
127-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
116+
uses: docker/metadata-action@v5
128117
with:
129118
images: ${{ env.IMAGE }}
130119

131120
# Build and push Docker image with Buildx (don't push on PR)
132121
# https://github.com/docker/build-push-action
133122
- name: Build and push Docker image
134123
id: build-and-push
135-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
124+
uses: docker/build-push-action@v5
136125
with:
137126
context: .
138127
push: ${{ github.event_name != 'pull_request' }}
139128
tags: |
140129
${{ env.IMAGE }}:latest
141130
${{ env.IMAGE }}:${{ env.GIT_SHA }}
142-

0 commit comments

Comments
 (0)