fix: Update .gitlab-ci.yml file
This commit is contained in:
@@ -4,7 +4,7 @@ stages: # Define the stages of the pipeline.
|
|||||||
#- test
|
#- test
|
||||||
- release
|
- release
|
||||||
|
|
||||||
install-job: # This job runs in the build stage, which runs first.
|
web-build: # This job runs in the build stage, which runs first.
|
||||||
stage: build
|
stage: build
|
||||||
image: node:24
|
image: node:24
|
||||||
script:
|
script:
|
||||||
@@ -15,12 +15,26 @@ install-job: # This job runs in the build stage, which runs first.
|
|||||||
paths:
|
paths:
|
||||||
- Web/dist/Web/browser # The 'dist' directory will be available in the next stage.
|
- Web/dist/Web/browser # The 'dist' directory will be available in the next stage.
|
||||||
|
|
||||||
|
api-build:
|
||||||
|
stage: build
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
|
script:
|
||||||
|
- cd Api
|
||||||
|
- dotnet build Api.csproj --output ./build --runtime linux-x64
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- Api/build
|
||||||
|
when: on_success
|
||||||
|
access: all
|
||||||
|
expire_in: 30 days
|
||||||
|
|
||||||
semantic-release:
|
semantic-release:
|
||||||
image: node:24
|
image: node:24
|
||||||
stage: release
|
stage: release
|
||||||
script:
|
script:
|
||||||
- apt update && apt install zip -y
|
- apt update && apt install zip -y
|
||||||
- zip -r dist.zip Web/dist/Web/browser
|
- zip -r dist.zip Web/dist/Web/browser
|
||||||
|
- zip -r api.zip Api/build
|
||||||
- npm install --save-dev @semantic-release/gitlab
|
- npm install --save-dev @semantic-release/gitlab
|
||||||
- npx semantic-release --debug
|
- npx semantic-release --debug
|
||||||
only:
|
only:
|
||||||
|
|||||||
Reference in New Issue
Block a user