Skip to content

Commit

Permalink
change publishing flow
Browse files Browse the repository at this point in the history
  • Loading branch information
sslivkoff committed Jan 29, 2024
1 parent d56a57d commit 6129026
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,34 @@ jobs:
cd rust
cargo build --release --manifest-path=crates/mesc_cli/Cargo.toml --target ${{ matrix.target }}
- name: Publish Release
if: startsWith(github.ref, 'refs/tags/')
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: binary-${{ matrix.target }}
path: path/to/your/binary

publish_release:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Download All Artifacts
uses: actions/download-artifact@v2
with:
path: artifacts

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
rust/target/${{ matrix.target }}/release/mesc_cli*
artifacts/*
name: ${{ github.event.inputs.release_name || github.ref_name }}
tag_name: ${{ github.ref_name }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6129026

Please sign in to comment.