From 4d5cb3e1d343a63ca537439de4b2b786b14f5bd0 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Wed, 29 Sep 2021 15:02:54 +0100 Subject: [PATCH] ci: :building_construction: --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5fd032393..7ddd0bfbc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,6 +65,27 @@ jobs: # # Use always() to always run this step to publish test results when there are test failures # if: ${{ always() }} + versioning: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + # This is only to get the next version number so we can set the version before compile + - name: Conventional Changelog Action + id: pre-build-changelog + 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: Output version + run: | + echo "outputs: ${{ steps.pre-build-changelog.outputs }}" + echo "Version: ${{ steps.pre-build-changelog.outputs.version }}" + echo "Version: ${{ steps.pre-build-changelog.outputs.tag }}" + publish: runs-on: ubuntu-latest needs: [ build-ui ] @@ -115,6 +136,7 @@ jobs: run: | echo "outputs: ${{ steps.pre-build-changelog.outputs }}" echo "Version: ${{ steps.pre-build-changelog.outputs.version }}" + echo "Version: ${{ steps.pre-build-changelog.outputs.tag }}" - name: Set Backend Version run: |