Skip to content

Commit

Permalink
workflows updates
Browse files Browse the repository at this point in the history
  • Loading branch information
guimou committed Nov 13, 2024
1 parent 0258d24 commit 6368498
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish to GitHub Pages
on:
push:
branches: [main]
branches: [main-rhoai-2.13]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
Expand All @@ -21,8 +21,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main-rhoai-2.13
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Antora
Expand All @@ -31,15 +33,15 @@ jobs:
run: npx antora default-site.yml
# run: npx antora content/default-site.yml
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4
- name: find where the files are
run: |
pwd
#ls -alR .
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: content/www/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
5 changes: 3 additions & 2 deletions .github/workflows/spelling_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Spellcheck Action
on:
pull_request:
branches:
- dev-rhoai-2.13
- dev

jobs:
Expand All @@ -11,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Spellcheck
uses: rojopolis/spellcheck-github-actions@v0
Expand All @@ -21,7 +22,7 @@ jobs:
output_file: spellcheck-output.txt

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: '!cancelled()' # Do not upload artifact if job was cancelled
with:
name: Spellcheck Output
Expand Down

0 comments on commit 6368498

Please sign in to comment.