From 8db8f5008665674026894bad697f194c352ef97e Mon Sep 17 00:00:00 2001 From: Fergus Molloy Date: Fri, 25 Jul 2025 15:08:27 +0100 Subject: [PATCH] release 0.0.3 --- .gitea/workflows/release.yaml | 20 ++++++++++---------- check-for-tag.sh | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index e04fc5a..c53ef70 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -15,15 +15,15 @@ jobs: run: ./check-for-tag.sh - name: Create Output Directory - if: ${{ env.RELEASE_TAG != '' }} + if: ${{ steps.check_tag.outputs.release_tag != '' }} run: mkdir package - name: Setup Node - if: ${{ env.RELEASE_TAG != '' }} + if: ${{ steps.check_tag.outputs.release_tag != '' }} uses: actions/setup-node@v4 with: node-version: '24' - name: Load Cache - if: ${{ env.RELEASE_TAG != '' }} + if: ${{ steps.check_tag.outputs.release_tag != '' }} uses: actions/cache@v4 with: path: | @@ -34,32 +34,32 @@ jobs: key: ${{ runner.os }}-package-${{ hashFiles('backend/Cargo.lock') }}-${{ hashFiles('ui/package-lock.json') }} - name: Install UI Dependencies - if: ${{ env.RELEASE_TAG != '' }} + if: ${{ steps.check_tag.outputs.release_tag != '' }} working-directory: ui run: npm ci - name: Build UI - if: ${{ env.RELEASE_TAG != '' }} + if: ${{ steps.check_tag.outputs.release_tag != '' }} working-directory: ui run: npm run build - name: Copy Output - if: ${{ env.RELEASE_TAG != '' }} + if: ${{ steps.check_tag.outputs.release_tag != '' }} run: cp -rv ui/.output package/ui - name: Build Backend - if: ${{ env.RELEASE_TAG != '' }} + if: ${{ steps.check_tag.outputs.release_tag != '' }} working-directory: backend run: cargo build --release --locked - name: Copy Binary - if: ${{ env.RELEASE_TAG != '' }} + if: ${{ steps.check_tag.outputs.release_tag != '' }} run: cp -v backend/target/release/nuchat package/ - name: Package Output - if: ${{ env.RELEASE_TAG != '' }} + if: ${{ steps.check_tag.outputs.release_tag != '' }} run: tar -cf - package | zstd -19 -T0 -o package.tar.zst - name: Upload Package - if: ${{ env.RELEASE_TAG != '' }} + if: ${{ steps.check_tag.outputs.release_tag != '' }} run: |- curl -X PUT \ -H 'Authorization: token ${{ secrets.PACKAGE_API_KEY }}' \ diff --git a/check-for-tag.sh b/check-for-tag.sh index 22e10bd..57b5d1e 100755 --- a/check-for-tag.sh +++ b/check-for-tag.sh @@ -3,7 +3,7 @@ TAGS="$(git tag --points-at HEAD)" if [ -n "$TAGS" ]; then TAG=$(echo "$TAGS" | grep -E '^v[0-9]+.[0-9]+.[0-9]+$' | sort -V | tail -1) - echo "RELEASE_TAG=$TAG" >> "$GITHUB_ENV" + echo "release_tag=$TAG" >> "$GITHUB_OUTPUTS" else echo "No release tag found" fi