From db8e828341f59241ef7f437c908277fb8fbca9e3 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Sat, 11 Feb 2023 13:55:49 -0700 Subject: [PATCH] feat(ci): Add release workflow (#89) --- .github/workflows/release.yml | 20 +++++++++++++++++ .release-please-manifest.json | 1 + release-please-config.json | 42 +++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..068ed7e1e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +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: + command: manifest diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 000000000..b01e31d45 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1 @@ +{".":"0.4.1","acir":"0.4.1","acir_field":"0.4.1","acvm":"0.4.1","stdlib":"0.4.1"} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 000000000..c7d4d486b --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,42 @@ +{ + "bootstrap-sha": "97149adb99f53e1f78de6d7ad938f4af262483e6", + "release-type": "rust", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": true, + "group-pull-request-title-pattern": "chore: Release ${version}", + "packages": { + ".": { + "release-type": "simple", + "component": "root" + }, + "acir": { + "component": "acir" + }, + "acir_field": { + "component": "acir_field" + }, + "acvm": { + "component": "acvm" + }, + "stdlib": { + "component": "acvm_stdlib" + } + }, + "plugins": [ + { + "type": "cargo-workspace", + "merge": false + }, + { + "type": "linked-versions", + "group-name": "acvm", + "components": [ + "root", + "acir", + "acir_field", + "acvm", + "acvm_stdlib" + ] + } + ] +}