Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Jul 29, 2024
1 parent b877fb9 commit e065fcf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/bin/constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ if [ "$GITHUB_REPOSITORY" = "planetarium/libplanet" ] && [[ \
"$GITHUB_REF" = refs/heads/ci-* || \
"$GITHUB_REF" = refs/heads/9c-* \
]]; then
publish_package=true
echo "123"
fi
6 changes: 6 additions & 0 deletions .github/bin/dist-pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ version_prefix="$(cat obj/version_prefix.txt)" # e.g. 0.50.0
if [[ -f obj/version_suffix.txt ]]; then # e.g. dev.20230221015836+35a2dbc
version_suffix="$(cat obj/version_suffix.txt)"
fi
repository_url="$(cat obj/repository_url.txt)"

for project in "${executables[@]}"; do
for rid in "${rids[@]}"; do
Expand Down Expand Up @@ -63,6 +64,11 @@ for project in "${projects[@]}"; do
dotnet_args="$dotnet_args --version-suffix=$version_suffix"
dotnet_args="$dotnet_args -p:NoPackageAnalysis=true"
fi

if [[ "$repository_url" != "" ]]; then
dotnet_args="$dotnet_args -p:RepositoryUrl=$repository_url"
fi

dotnet_args="$dotnet_args -p:_IsPacking=true"
# shellcheck disable=SC2086
dotnet build -c "$configuration" $dotnet_args || \
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
on:
push:
branches:
- "main"
- "ci/nuget-repo-url"
tags:
- "*"
name: Build artifact and push
Expand Down Expand Up @@ -56,6 +56,7 @@ jobs:
VERSION_SUFFIX: ${{ steps.determine-version.outputs.version-suffix }}
PACKAGE_VERSION: ${{ steps.determine-version.outputs.package-version }}
VERSION_TYPE: ${{ steps.determine-version.outputs.version-type }}
- run: echo "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/tree/$GITHUB_SHA" > obj/repository_url.txt
- run: .github/bin/dist-release-note.sh CHANGES.md obj/release_note.txt
- uses: actions/upload-artifact@main
with:
Expand Down

0 comments on commit e065fcf

Please sign in to comment.