[make] Fix release script

This commit is contained in:
Laura Hausmann 2025-02-19 00:55:21 +01:00
parent 5995f232e9
commit f26e97f402
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 4 additions and 4 deletions

View file

@ -19,10 +19,10 @@ jobs:
- name: Print environment info
run: dotnet --info
- name: Build release artifacts
run: make release-artifacts "ARCHIVE_BASENAME=$REPO" "ARCHIVE_VERSION=$VERSION" VERBOSE=true DEP_VULN_WERROR=true
run: make release-artifacts "ARCHIVE_BASENAME=$REPO" "ARCHIVE_VERSION=$RELEASE_VERSION" VERBOSE=true DEP_VULN_WERROR=true
env:
REPO: ${{ github.event.repository.name }}
VERSION: ${{ github.ref_name }}
RELEASE_VERSION: ${{ github.ref_name }}
- name: Upload artifacts
uses: actions/release-action@main
with:

View file

@ -43,8 +43,8 @@ ARTIFACT_CMD = tar caf ${ARTIFACT_DIR}/${ARCHIVE_FILENAME} --transform 's,^
--release-pre:
@echo 'Compiling database model...'
@dotnet tool install -g dotnet-ef > /dev/null
@dotnet dotnet ef -p Iceshrimp.Backend dbcontext optimize -o Core/Database/Model --suffix '.g' > /dev/null
@dotnet tool install --tool-path ./bin dotnet-ef > /dev/null
@./bin/dotnet-ef -p Iceshrimp.Backend dbcontext optimize -o Core/Database/Model --suffix '.g' > /dev/null
@echo 'Building release artifacts for targets: ${RELEASE_TARGETS}'
@echo 'This will take a while.'
@echo