From 7d91e5370449776f6ee18bcd8b8af8c0f35e7bea Mon Sep 17 00:00:00 2001 From: Max Richter Date: Mon, 2 Feb 2026 16:41:14 +0100 Subject: [PATCH] feat(ci): run on every branch --- .gitea/workflows/deploy.yaml | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 672bc53..923f014 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -11,8 +11,6 @@ jobs: setup: runs-on: ubuntu-latest container: jimfx/nodes:latest - outputs: - workspace: ${{ steps.set_workspace.outputs.workspace }} steps: - name: ๐Ÿ“‘ Checkout Code uses: actions/checkout@v4 @@ -22,19 +20,29 @@ jobs: with: path: ${{ env.PNPM_CACHE_FOLDER }} key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm- - name: ๐Ÿ“ฆ Install Dependencies run: pnpm install --frozen-lockfile --store-dir ${{ env.PNPM_CACHE_FOLDER }} - - name: ๐Ÿ“ Set Workspace Output - id: set_workspace - run: echo "workspace=." >> $GITHUB_OUTPUT + - name: ๐Ÿ“ค Upload Workspace + uses: actions/upload-artifact@v4 + with: + name: workspace-deps + path: . + include-hidden-files: true lint: needs: setup runs-on: ubuntu-latest container: jimfx/nodes:latest steps: + - name: ๐Ÿ“ฅ Download Workspace + uses: actions/download-artifact@v4 + with: + name: workspace-deps + path: . - name: ๐Ÿงน Run Linter run: pnpm lint @@ -43,6 +51,11 @@ jobs: runs-on: ubuntu-latest container: jimfx/nodes:latest steps: + - name: ๐Ÿ“ฅ Download Workspace + uses: actions/download-artifact@v4 + with: + name: workspace-deps + path: . - name: ๐ŸŽจ Check Formatting run: pnpm format:check @@ -51,6 +64,11 @@ jobs: runs-on: ubuntu-latest container: jimfx/nodes:latest steps: + - name: ๐Ÿ“ฅ Download Workspace + uses: actions/download-artifact@v4 + with: + name: workspace-deps + path: . - name: ๐Ÿงฌ Type Check run: pnpm check @@ -60,6 +78,12 @@ jobs: runs-on: ubuntu-latest container: jimfx/nodes:latest steps: + - name: ๐Ÿ“ฅ Download Workspace + uses: actions/download-artifact@v4 + with: + name: workspace-deps + path: . + - name: ๐Ÿ› ๏ธ Build Site run: pnpm run build:deploy