Skip to content

Commit

Permalink
Update CD workflow; remove step and adjust if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
oleander committed Jan 25, 2025
1 parent 2a5a343 commit 6d19a43
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,19 @@ jobs:
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}-${{ github.run_number }}
name: git-ai-${{ matrix.target }}
if-no-files-found: error
path: |
bin/git-ai
bin/git-ai-hook
- name: Print the artifact URL
run: echo ${{ steps.upload-artifact.outputs.artifact-url }}

release:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
if: github.event.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -121,11 +119,21 @@ jobs:
cargo bump patch --git-tag
cargo check
- name: Include the version bump in the commit message
- name: Commit Version Bump
run: git commit -a --amend --no-edit

- name: Publish to crates.io
run: cargo publish --allow-dirty

- name: Push to origin
run: git push origin HEAD --tags

# precompile:
# if: github.event.ref == 'refs/tags/*'
# needs: release
# runs-on: ubuntu-latest
# steps:
# - name: Release
# uses: softprops/action-gh-release@v2
# with:
# files: Release.txt

0 comments on commit 6d19a43

Please sign in to comment.