Compare commits

...

10 Commits

Author SHA1 Message Date
amevarashi 00c4eac73a Update .gitlab-ci.yml file 2024-04-28 17:28:49 +00:00
amevarashi 818d288cc5 Update .gitlab-ci.yml file 2024-04-28 17:19:35 +00:00
amevarashi e643833472 Update .gitlab-ci.yml file 2024-04-28 15:10:02 +00:00
amevarashi 2399f2af64 Update .gitlab-ci.yml file 2024-04-28 15:06:45 +00:00
amevarashi 61b209021a Update .gitlab-ci.yml file 2024-04-28 14:56:50 +00:00
amevarashi 12af69d11a Update .gitlab-ci.yml file 2024-04-28 14:42:48 +00:00
amevarashi 6aac2836bb Update .gitlab-ci.yml file 2024-04-28 14:11:08 +00:00
amevarashi 863dfc71dc Update .gitlab-ci.yml file 2024-04-28 14:03:28 +00:00
amevarashi bc6c37e0cc Update .gitlab-ci.yml file 2024-04-28 14:00:17 +00:00
amevarashi 80f0786960 Update .gitlab-ci.yml file 2024-04-28 13:51:52 +00:00
1 changed files with 21 additions and 8 deletions

View File

@ -83,20 +83,22 @@ cache:
# in the root of project repository, so its content can be cached.
#
# Learn more about GitLab cache: https://docs.gitlab.com/ee/ci/caching/index.html
before_script:
- 'cd $SOURCE_CODE_PATH'
- 'dotnet restore --packages ../$NUGET_PACKAGES_DIRECTORY'
#before_script:
# - 'cd $SOURCE_CODE_PATH'
# - 'dotnet restore --packages ../$NUGET_PACKAGES_DIRECTORY'
build:
stage: build
# ### Build all projects discovered from solution file.
script:
- 'cd $SOURCE_CODE_PATH'
- 'dotnet restore --packages ../$NUGET_PACKAGES_DIRECTORY'
- 'curl -s --create-dirs "$RJW_DLL_URL" -o ../../rjw/$RIMWORLD_VERSION/Assemblies/RJW.dll'
- 'dotnet build --no-restore'
artifacts:
untracked: false
when: on_success
expire_in: 3 days
expire_in: 1 day
paths:
- "*" # Incluse everything
exclude:
@ -117,7 +119,18 @@ build:
# script:
# - 'dotnet test --no-restore'
#deploy:
# stage: deploy
# script: echo "Define your deployment script!"
# environment: production
release_dev:
stage: deploy
# image: registry.gitlab.com/gitlab-org/release-cli:latest # this image currently is amd64 only
image: alpine:latest
rules:
- if: $CI_COMMIT_TAG
when: never # Do not run this job when a tag is created manually
- if: $CI_COMMIT_BRANCH == "ci-test" # Run this job when commits are pushed or merged to the dev branch
script:
- 'apk add gitlab-release-cli'
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: 'test-build-$CI_PIPELINE_IID' # The version is incremented per pipeline.
description: 'Automated release based on commit CI_COMMIT_SHA'
ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.