diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 095a50f92..bec3f9b74 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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' }} diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..209e3ef4b --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20