diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 745e8f3..31d11b9 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -1,4 +1,4 @@ -name: Deploy Preview +name: Deploy Docusaurus (Develop) on: push: @@ -14,7 +14,7 @@ concurrency: cancel-in-progress: true jobs: - deploy-preview: + deploy-dev: runs-on: ubuntu-latest environment: name: github-pages @@ -29,20 +29,22 @@ jobs: node-version: 20 cache: npm - - name: Install dependencies - run: npm ci + - name: Clean & Install + run: | + rm -rf node_modules build .docusaurus + npm ci - - name: Build + - name: Build Docusaurus (Dev) env: - BASE_URL: /preview/ + BASE_URL: /dev/ run: npm run build - - name: Upload artifact + - name: Upload Pages artifact uses: actions/upload-pages-artifact@v3 with: path: build - - name: Deploy to Preview + - name: Deploy to GitHub Pages (/dev) uses: actions/deploy-pages@v4 with: target-path: dev diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index be3f06a..18d203f 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -1,4 +1,4 @@ -name: Deploy to Prod +name: Deploy Docusaurus (Prod) on: push: @@ -23,24 +23,26 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Setup Node + - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: 20 cache: npm - - name: Install deps - run: npm ci + - name: Clean & Install + run: | + rm -rf node_modules build .docusaurus + npm ci - - name: Build + - name: Build Docusaurus (Prod) env: BASE_URL: / run: npm run build - - name: Upload artifact + - name: Upload Pages artifact uses: actions/upload-pages-artifact@v3 with: path: build - - name: Deploy + - name: Deploy to GitHub Pages uses: actions/deploy-pages@v4