From ff10f73645eb8900e9b10810b774ae9149709a78 Mon Sep 17 00:00:00 2001 From: Matthew L McPeak Date: Fri, 12 Jun 2026 10:59:37 -0400 Subject: [PATCH] fix: CI fix naming --- .forgejo/workflows/ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index dbec658..9082234 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -10,6 +10,8 @@ jobs: build: runs-on: ubuntu-latest container: oven/bun:1 + outputs: + artifact_name: ${{ steps.meta.outputs.name }} steps: - name: Install git and node run: apt-get update && apt-get install -y git nodejs @@ -17,6 +19,16 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Set artifact name + id: meta + run: | + if [[ "${{ github.ref_type }}" == "tag" ]]; then + tag="${GITHUB_REF_NAME#v}" + else + tag="$(date -u +%Y%m%d)" + fi + echo "name=portfolio_${tag}" >> "$GITHUB_OUTPUT" + - name: Install dependencies run: bun install --frozen-lockfile @@ -35,7 +47,7 @@ jobs: - name: Upload dist uses: https://code.forgejo.org/forgejo/upload-artifact@v4 with: - name: portfolio${{ '_' + steps.meta.outputs.tag }}.zip + name: ${{ steps.meta.outputs.name }}.zip path: dist publish: @@ -50,7 +62,7 @@ jobs: - name: Download dist uses: https://code.forgejo.org/forgejo/download-artifact@v4 with: - name: dist + name: ${{ needs.build.outputs.artifact_name }}.zip path: dist - name: Log in to registry