diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 00000000..8226171a --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,42 @@ +name: Build +on: + pull_request: + branches: + - v4 + push: + branches: + - v4 +jobs: + build: + runs-on: ubuntu-latest + concurrency: + group: "pages" + cancel-in-progress: false + steps: + - run: git config --global core.quotepath false + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - run: npm i + - run: npx quartz build + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: ./public + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url}} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/content/Untitled.md b/content/Untitled.md new file mode 100644 index 00000000..e69de29b