fix: remove pnpm version in ci #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload Docs to JFrog | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build with VitePress | |
run: pnpm docs:build | |
- name: Create Tarball | |
uses: a7ul/[email protected] | |
with: | |
command: c | |
cwd: ${{ github.workspace }}/.vitepress/ | |
files: | | |
./dist | |
outPath: ${{ github.workspace }}/.vitepress/clab-docs.tar.gz | |
- name: Upload Tarball | |
uses: fjogeleit/http-request-action@v1 | |
with: | |
url: 'https://jfrog.lcpu.dev/artifactory/cloud-doc/latest-neo.tar.gz' | |
method: 'PUT' | |
bearerToken: ${{ secrets.JFROG_BEARER_TOKEN }} | |
file: ${{ github.workspace }}/.vitepress/clab-docs.tar.gz |