Fix CI #4

Merged
McPeakML merged 22 commits from mcpeakml/portfolio into main 2026-06-12 11:13:34 -04:00

View file

@ -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