Skip to content

Commit

Permalink
Merge pull request planetarium#2104 from planetarium/fix-github-ci
Browse files Browse the repository at this point in the history
Fix GitHub ci
  • Loading branch information
area363 authored Aug 29, 2023
2 parents cda8950 + 8a344b2 commit fae9194
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/bin/dist-pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for rid in "${rids[@]}"; do
output_dir="./Release/$rid/"
mkdir -p "$output_dir"

dotnet publish \
dotnet publish Lib9c/Lib9c.csproj \
-c Release \
-r $rid \
-o $output_dir \
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ jobs:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.100
- name: bulid
- name: build
run: |
dotnet_args="-c Release -p:NoPackageAnalysis=true"
if [[ ! "$GITHUB_REF" =~ ^refs/tags/* ]]; then
project_suffix=dev.${{ github.sha }}
dotnet_args="$dotnet_args --version-suffix $project_suffix"
fi
dotnet build "$dotnet_args"
dotnet pack "$dotnet_args"
# shellcheck disable=SC2086
dotnet build $dotnet_args
# shellcheck disable=SC2086
dotnet pack $dotnet_args
- name: push
if: github.event_name != 'pull_request'
run: |
Expand Down

0 comments on commit fae9194

Please sign in to comment.