diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e75111..fd4827d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,14 +13,9 @@ env: SCCACHE_VERSION: 0.7.7 SCCACHE_CACHE_KEY: v1 -# TODO caching (rust files, sccache) # TODO ensure config scheme is up to date -# TODO improve code coverage handling -# TODO handle release for tag -# TODO - check version: tag vs cargo toml -# TODO - download artifacts -# TODO - get changelog -# TODO - create release +# TODO https://github.com/obi1kenobi/cargo-semver-checks-action +# TODO semantic commits for changelog and version jobs: lint: @@ -151,3 +146,23 @@ jobs: name: havocompare-${{ matrix.target }} path: target/${{ matrix.target }}/release/havocompare${{ startsWith(matrix.os, 'windows') && '.exe' || '' }} if-no-files-found: error + + publish: + name: publish + runs-on: ubuntu-22.04 + needs: main + steps: + - uses: actions/checkout@v4 + - name: Download + uses: actions/download-artifact@v4 + with: + path: artifacts + pattern: havocompare-* + merge-multiple: true + - run: ls -larth + - run: ls -larth artifacts + - name: Create release + run: | + # TODO - check version: tag vs cargo toml + gh --version + if: ${{ startsWith(github.ref, 'refs/tags/') }}