From 436b112fd338031286d147a2b5f7af65a4960a2e Mon Sep 17 00:00:00 2001 From: bfahrenfort Date: Sat, 31 Aug 2024 19:02:04 +1000 Subject: [PATCH] temporarily restore old workflows --- .github/workflows/ci.yaml | 4 ++-- .github/workflows/deploy.yaml | 45 +++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ce1f892fe..f0fc1fd18 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,7 +11,7 @@ on: jobs: build-and-test: - if: ${{ github.repository == 'bfahrenfort/quartz' }} + if: ${{ github.repository == 'jackyzha0/quartz' }} strategy: matrix: os: [windows-latest, macos-latest, ubuntu-latest] @@ -48,7 +48,7 @@ jobs: run: npx quartz build --bundleInfo publish-tag: - if: ${{ github.repository == 'bfahrenfort/quartz' && github.ref == 'refs/heads/v4' }} + if: ${{ github.repository == 'jackyzha0/quartz' && github.ref == 'refs/heads/v4' }} runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 000000000..8f8f1d175 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,45 @@ +name: Deploy Quartz site to GitHub Pages + +on: + push: + branches: + - v4 + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Fetch all history for git info + - uses: actions/setup-node@v3 + with: + node-version: 20 + - name: Install Dependencies + run: npm ci + - name: Build Quartz + run: npx quartz build + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: public + + deploy: + needs: build + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2