-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): Add release infrastructure (#4)
- Loading branch information
Showing
5 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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,29 @@ | ||
name: Publish crate | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: The reference to checkout | ||
required: true | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
|
||
- name: Setup toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.66.0 | ||
|
||
- name: Publish barretenberg-sys | ||
run: | | ||
cargo publish --package barretenberg-sys | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.BARRETENBERG_SYS_CRATES_IO_TOKEN }} |
This file contains 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,29 @@ | ||
name: Pull Request | ||
|
||
on: | ||
merge_group: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
conventional-title: | ||
name: Validate PR title is Conventional Commit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check title | ||
if: github.event_name == 'pull_request_target' | ||
uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
types: | | ||
fix | ||
feat | ||
chore |
This file contains 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,36 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release-please: | ||
name: Create Release | ||
outputs: | ||
release-pr: ${{ steps.release.outputs.pr }} | ||
tag-name: ${{ steps.release.outputs.tag_name }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run release-please | ||
id: release | ||
uses: google-github-actions/release-please-action@v3 | ||
with: | ||
release-type: rust | ||
bump-minor-pre-major: true | ||
bump-patch-for-minor-pre-major: true | ||
pull-request-title-pattern: "chore: Release ${version}" | ||
|
||
publish: | ||
name: Publish crates | ||
needs: [release-please] | ||
if: ${{ needs.release-please.outputs.tag-name }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Dispatch to publish workflow | ||
uses: benc-uk/workflow-dispatch@v1 | ||
with: | ||
workflow: publish.yml | ||
ref: master | ||
inputs: '{ "ref": "${{ needs.release-please.outputs.tag-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 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,6 +1,6 @@ | ||
[package] | ||
name = "barretenberg-sys" | ||
version = "0.1.0" | ||
version = "0.0.0" | ||
description = "FFI bindings to Barretenberg" | ||
authors = ["The Noir Team <[email protected]>"] | ||
repository = "https://github.com/noir-lang/barretenberg-sys/" | ||
|