-
Notifications
You must be signed in to change notification settings - Fork 1
feat: release workflow #347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
aaabd49
feat: release workflow
Blindspot22 51c768a
Merge remote-tracking branch 'origin' into 340-release-update
Blindspot22 3296ab3
fix: update changes from review
Blindspot22 aae4d07
fix: added cron_script, add a check to ensure changes before release
Blindspot22 076aa8a
feat: adjusted functional release workflow
Blindspot22 0d6cdf2
feat: adjusted functional release workflow
Blindspot22 6644d1d
fix: switch action to maintained version
Blindspot22 f63283a
fix: switch action to maintained version
Blindspot22 6e4aeb7
branch switch
Blindspot22 220e3ae
fix: nix downgrade
Blindspot22 cd538b6
fix: nix update
Blindspot22 008768c
fix: nix update
Blindspot22 40e1eb5
fix: removed windows for pipeline success as it's not required for now
Blindspot22 4656c4d
new fixes
Blindspot22 34a286b
new fixes
Blindspot22 597a464
new fixes
Blindspot22 74660aa
fix: removed windows test for pipeline success as it's not required f…
Blindspot22 f99ab9f
fix: adjust tag and versioning
Blindspot22 b1a9f13
fix: adjust tag and versioning
Blindspot22 ce38748
feat: new update in version
Blindspot22 faf67d4
Merge remote-tracking branch 'origin' into 340-release-update
Blindspot22 023b64c
fix: resolving conflicts
Blindspot22 febce4d
feat: final adjustment and test
Blindspot22 c40e83e
fix: overindentation
Blindspot22 0e66574
fix: over indentation
Blindspot22 84b4994
Merge remote-tracking branch 'origin' into 340-release-update
Blindspot22 3cd0161
fix: over indentation
Blindspot22 afd1444
Update actions/upload-artifact to v4
Blindspot22 297bcd2
fix: unused imports
Blindspot22 8dba6cd
fix: unused imports
Blindspot22 dd9d121
fix: code format
Blindspot22 1362ded
removed unused import mongodb
Blindspot22 31e648c
adjust binary path
Blindspot22 955f4f0
adjust binary path
Blindspot22 2023935
Adding write permissions
Blindspot22 c1e66f2
feat: changes from review
Blindspot22 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| name: Release Workflow | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' # Trigger on tag push like v0.1.0 | ||
| workflow_dispatch: | ||
| inputs: | ||
| dry_run: | ||
| description: 'Dry run (true/false)' | ||
| required: true | ||
| default: 'true' | ||
| skip_tests: | ||
| description: 'Skip tests (true/false)' | ||
| required: true | ||
| default: 'false' | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| build_and_test: | ||
| name: Build and Test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Set up Rust | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
| with: | ||
| toolchain: stable | ||
|
|
||
| - name: Cache Cargo | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/index | ||
| target | ||
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
Blindspot22 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Build Project | ||
| run: cargo build --release --verbose | ||
|
|
||
| - name: Run Tests | ||
| if: ${{ github.event.inputs.skip_tests != 'true' }} | ||
| run: cargo test --verbose | ||
|
|
||
| - name: Save Release Binary | ||
| if: startsWith(github.ref, 'refs/tags/v') | ||
| run: | | ||
| mkdir -p release-artifacts | ||
| cp target/release/didcomm-mediator release-artifacts/ | ||
Blindspot22 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| chmod +x release-artifacts/didcomm-mediator | ||
|
|
||
| - name: Upload Binary Artifact | ||
| if: startsWith(github.ref, 'refs/tags/v') | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: didcomm-mediator-binary | ||
| path: release-artifacts/ | ||
|
|
||
| create_release: | ||
| name: Create Release | ||
| runs-on: ubuntu-latest | ||
| needs: build_and_test | ||
| if: startsWith(github.ref, 'refs/tags/v') | ||
| steps: | ||
| - name: Download Binary Artifact | ||
| uses: actions/download-artifact@v4.1.8 | ||
| with: | ||
| name: didcomm-mediator-binary | ||
Blindspot22 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| path: release-assets | ||
|
|
||
| - name: Create GitHub Release | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| uses: softprops/action-gh-release@v2.1.0 | ||
| with: | ||
| name: Release ${{ github.ref_name }} | ||
| draft: false | ||
| prerelease: ${{ contains(github.ref_name, 'rc') }} | ||
| files: | | ||
| release-assets/didcomm-mediator | ||
| body: | | ||
| ## Release ${{ github.ref_name }} | ||
|
|
||
| This is the release of **didcomm-mediator-rs**, a Rust implementation of a mediator for the DIDComm v2 protocol. | ||
|
|
||
| ### Key Features | ||
| - Basic Mediation Support for DIDComm v2 | ||
| - Routing and Keylist Management | ||
| - Interoperability with existing SSI infrastructure | ||
| - Modular and extensible architecture | ||
| - Advanced error handling and transport-layer compliance development | ||
|
|
||
| ### Getting Started | ||
| See the [README](https://github.com/adorsys/didcomm-mediator-rs#readme) for setup and usage instructions. | ||
|
|
||
| _This release was automatically generated from tag `${{ github.ref_name }}`._ | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
crates/web-plugins/didcomm-messaging/shared/src/breaker/tests.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #![allow(clippy::doc_overindented_list_items)] | ||
| use super::*; | ||
|
|
||
| use std::sync::atomic::{AtomicUsize, Ordering}; | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.