From faebed7ca9b967849066fb793ef159064d73938d Mon Sep 17 00:00:00 2001 From: Matthew L McPeak Date: Fri, 12 Jun 2026 11:13:34 -0400 Subject: [PATCH] Fix CI (#4) Reviewed-on: https://git.mcpeakdev.com/McPeakML/Portfolio/pulls/4 Co-authored-by: Matthew L McPeak Co-committed-by: Matthew L McPeak --- .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 397de82..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: dist.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