Skip to content

Commit

Permalink
CI Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Aug 11, 2023
1 parent 3fd3745 commit 460fc77
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci-publish.yml
Expand Up @@ -25,11 +25,12 @@ jobs:
- name: Get Activity Short Circuit
id: check
run: |
echo "Event name: ${{ github.event_name }}"
git branch -a
git fetch origin nightly:nightly
head_sha=$(git rev-parse --verify HEAD)
nightly_sha=$(git rev-parse --verify nightly)
if [[ "$head_sha" == "$nightly_sha" ]]; then
if [[ "$head_sha" == "$nightly_sha" && ${{ github.event_name }} != "release" ]]; then
same_sha=true;
else
same_sha=false;
Expand Down Expand Up @@ -97,11 +98,11 @@ jobs:
- name: Build
run: dotnet build Noggog.CSharpExt.sln -c Release --no-restore /p:GeneratePackageOnBuild=false
- name: Pack Preview
if: ${{ success() && (github.event.inputs.is_release_event != 'true' || github.ref != 'refs/heads/master') }}
if: ${{ success() && github.event.release.prerelease }}
run: |
dotnet pack Noggog.CSharpExt.sln -c Release --no-build --no-restore -o out --version-suffix "nightly-${{ steps.current-time.outputs.formattedTime }}"
- name: Pack Release
if: ${{ success() && github.event.inputs.is_release_event == 'true' && github.ref == 'refs/heads/master' }}
if: ${{ success() && !github.event.release.prerelease }}
run: |
dotnet pack Noggog.CSharpExt.sln -c Release --no-build --no-restore -o out
- name: Publish to Github
Expand Down

0 comments on commit 460fc77

Please sign in to comment.