Update deploy workflow
This commit is contained in:
parent
3886e7a549
commit
b8d46a4894
|
|
@ -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' }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue