Update deploy workflow

This commit is contained in:
Mario Manno 2024-11-13 17:21:39 +01:00
parent 3886e7a549
commit b8d46a4894
2 changed files with 7 additions and 4 deletions

View File

@ -10,21 +10,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.x
node-version-file: '.nvmrc'
cache: yarn
- name: Build website
run: |
yarn install --frozen-lockfile
yarn build
- name: Upload artifacts
if: ${{ github.event_name == 'push' && github.repository_owner == 'rancher' }}
uses: actions/upload-pages-artifact@v3
with:
path: ./build
retention-days: 10
compression-level: 9
retention-days: 5
deploy:
name: Publish
if: ${{ github.event_name == 'push' && github.repository_owner == 'rancher' }}

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
20