Skip to content

Commit

Permalink
Add concurrency
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Jul 2, 2024
1 parent ec8d140 commit cd5e151
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,24 +73,23 @@ jobs:
needs: [build_website, build_docs]
permissions:
contents: write
# Allow only one concurrent deployment between this and the nightly-upload workflow.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: pages
cancel-in-progress: false
steps:
- uses: actions/download-artifact@v4
id: download
with:
merge-multiple: true
- name: list
run: ls -aR
- name: Upload merged
uses: actions/upload-artifact@v4
with:
name: website-docs-merged
path: ./
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v4
# if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/test_sphinx_docs'
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./
# keep_files: true
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/test_sphinx_docs'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
keep_files: true
4 changes: 4 additions & 0 deletions .github/workflows/nightly-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
# Allow only one concurrent deployment between this and the deploy workflow.
concurrency:
group: pages
cancel-in-progress: false
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit cd5e151

Please sign in to comment.