diff --git a/.github/workflows/build.yml b/.github/workflows/build-only.yml similarity index 100% rename from .github/workflows/build.yml rename to .github/workflows/build-only.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy-npm.yml similarity index 100% rename from .github/workflows/deploy.yml rename to .github/workflows/deploy-npm.yml diff --git a/.github/workflows/deploy-test-only.yml b/.github/workflows/deploy-test-only.yml new file mode 100644 index 000000000..4241f71f2 --- /dev/null +++ b/.github/workflows/deploy-test-only.yml @@ -0,0 +1,57 @@ +name: Quartz - Deploy to GitHub Pages (test only) + +on: + workflow_dispatch: + # push: + # branches: + # - main + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +defaults: + run: + shell: bash + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Fetch all history for git info + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Install Dependencies + run: npm i + + build: + needs: setup + runs-on: ubuntu-latest + steps: + - name: Build Quartz Site + run: npx quartz build + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: public + + deploy: + needs: [setup, build] + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4 + id: deployment