Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dicko2 committed Nov 14, 2024
1 parent 00f51ee commit 0def4da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
run: dotnet build ${{ env.SOLUTION_FILE }} --configuration Release --no-restore

- name: Pack Release
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
working-directory: ${{ env.GIT_REPO_ROOT }}
run: |
dotnet pack Agoda.CodeCompass/Agoda.CodeCompass.csproj --configuration Release -o finalpackage --no-build -p:PackageVersion=${{ env.MAJOR_MINOR_VERSION }}${{ github.run_number }}
dotnet pack Agoda.CodeCompass.MSBuild/Agoda.CodeCompass.MSBuild.csproj --configuration Release -o finalpackage --no-build -p:PackageVersion=${{ env.MAJOR_MINOR_VERSION }}${{ github.run_number }}
- name: Pack Preview
if: github.ref != 'refs/heads/master'
if: github.ref != 'refs/heads/main'
working-directory: ${{ env.GIT_REPO_ROOT }}
run: |
dotnet pack Agoda.CodeCompass/Agoda.CodeCompass.csproj --configuration Release -o finalpackage --no-build -p:PackageVersion=${{ env.MAJOR_MINOR_VERSION }}${{ github.run_number }}-preview
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
release:
needs: deploy
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
steps:
- name: Create Draft Release
id: create_release
Expand Down

0 comments on commit 0def4da

Please sign in to comment.