Skip to content

Commit

Permalink
add publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
rohdealx committed Mar 1, 2024
1 parent 30aa917 commit 1e00f32
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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/') }}

0 comments on commit 1e00f32

Please sign in to comment.