Skip to content

Commit

Permalink
Update other GH actions to v4 and make sure upload artifact only runs…
Browse files Browse the repository at this point in the history
… on ubuntu
  • Loading branch information
pgilad committed Jun 3, 2024
1 parent 3320468 commit 6536444
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Reporter CLI smoke test
run: node ./dist/cli/leasot-reporter.js --help

- if: matrix.node-version == env.DEFAULT_NODE_VERSION
- if: matrix.node-version == env.DEFAULT_NODE_VERSION && matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: build
Expand All @@ -81,11 +81,11 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
Expand All @@ -96,11 +96,11 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build
- name: Use Node.js ${{ env.DEFAULT_NODE_VERSION }} with NPM registry
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.DEFAULT_NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
Expand Down

0 comments on commit 6536444

Please sign in to comment.