[make] Fix release script
This commit is contained in:
parent
5995f232e9
commit
f26e97f402
2 changed files with 4 additions and 4 deletions
|
@ -19,10 +19,10 @@ jobs:
|
||||||
- name: Print environment info
|
- name: Print environment info
|
||||||
run: dotnet --info
|
run: dotnet --info
|
||||||
- name: Build release artifacts
|
- 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:
|
env:
|
||||||
REPO: ${{ github.event.repository.name }}
|
REPO: ${{ github.event.repository.name }}
|
||||||
VERSION: ${{ github.ref_name }}
|
RELEASE_VERSION: ${{ github.ref_name }}
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/release-action@main
|
uses: actions/release-action@main
|
||||||
with:
|
with:
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -43,8 +43,8 @@ ARTIFACT_CMD = tar caf ${ARTIFACT_DIR}/${ARCHIVE_FILENAME} --transform 's,^
|
||||||
|
|
||||||
--release-pre:
|
--release-pre:
|
||||||
@echo 'Compiling database model...'
|
@echo 'Compiling database model...'
|
||||||
@dotnet tool install -g dotnet-ef > /dev/null
|
@dotnet tool install --tool-path ./bin dotnet-ef > /dev/null
|
||||||
@dotnet dotnet ef -p Iceshrimp.Backend dbcontext optimize -o Core/Database/Model --suffix '.g' > /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 'Building release artifacts for targets: ${RELEASE_TARGETS}'
|
||||||
@echo 'This will take a while.'
|
@echo 'This will take a while.'
|
||||||
@echo
|
@echo
|
||||||
|
|
Loading…
Add table
Reference in a new issue