diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index abc04ff33..53dbddb7a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,6 +100,22 @@ jobs: restore-keys: | ${{ runner.os }}-nuget + # This is only to get the next version number so we can set the version before compile + - name: Conventional Changelog Action + uses: TriPSs/conventional-changelog-action@v3 + with: + github-token: ${{ secrets.github_token }} + skip-version-file: 'true' + skip-commit: 'true' + version-file: 'version.json' + output-file: 'false' + + - name: Set Backend Version + run: | + dotnet tool install -g dotnet-setversion + setversion -r ${{ steps.changelog.outputs.version }} + working-directory: src/Ombi + - name: Publish Backend ${{ matrix.os }} run: dotnet publish -c Release -r ${{ matrix.os }} -o "${{ matrix.os }}" --self-contained true -p:PublishSingleFile=true working-directory: src/Ombi @@ -120,14 +136,6 @@ jobs: cd .. echo "Copy dist to /ClientApp" sudo mv ~/src/Ombi/dist/* ${{ matrix.os }}/ClientApp/dist - cd ${{ matrix.os }} - echo "List OS folder" - ls - echo "list Clientapp" - cd ClientApp - ls - echo "list root" - ls ~/ working-directory: src/Ombi - name: Archive Release