Skip to content

Commit

Permalink
Update workflows, including concurrency.
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem committed Oct 9, 2024
1 parent a3e6ea3 commit 59c2fc2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/docbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: Documentation build

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,8 +43,6 @@ jobs:
path: docs/build/html
- name: Publish docs to Github Pages
if: startsWith(github.event.ref, 'refs/tags')
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/build/html # The folder the action should deploy.
folder: docs/build/html
2 changes: 1 addition & 1 deletion .github/workflows/docker_pyafq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
sh ./gpu_docker/docker-build.sh \
"${GITHUB_REF:10}" "nrdg" "11.4.3-devel-ubuntu20.04" "11"
- name: Login to GHCR
- name: Login to GHCR
if: github.ref == 'refs/heads/master' || startsWith(github.event.ref, 'refs/tags')
uses: docker/login-action@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker_pyafq_cuda12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
sh ./gpu_docker/docker-build.sh \
"${GITHUB_REF:10}" "nrdg" "12.0.1-devel-ubuntu20.04" "12"
- name: Login to GHCR
- name: Login to GHCR
if: github.ref == 'refs/heads/master' || startsWith(github.event.ref, 'refs/tags')
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: nrdg
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Test suite

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:

Expand Down

0 comments on commit 59c2fc2

Please sign in to comment.