diff --git a/.github/workflows/release-hotfix.yml b/.github/workflows/release-hotfix.yml deleted file mode 100644 index 32a597cf..00000000 --- a/.github/workflows/release-hotfix.yml +++ /dev/null @@ -1,38 +0,0 @@ -# This workflow creates a release pull request whenever a change is pushed to 'main'. -# When the release pull request is merged into 'main', it will automatically create and tag a new -# release version. - -name: Release automation from 'hotfix' branch -on: - push: - branches: [hotfix/2.2.2] -jobs: - release-please: - name: Create a new release - runs-on: ubuntu-latest - steps: - - uses: google-github-actions/release-please-action@v3 - id: release - with: - token: ${{ secrets.GH_TOKEN }} - default-branch: "hotfix/2.2.2" - release-type: ruby - package-name: nla-arclight - bump-minor-pre-major: true - bump-patch-for-minor-pre-major: true - include-v-in-tag: false - changelog-types: >- - [ - {"type":"feat","section":"Features","hidden":false}, - {"type":"fix","section":"Bug Fixes","hidden":false}, - {"type":"perf","section":"Performance Improvements","hidden":false}, - {"type":"revert","section":"Reverts","hidden":false}, - {"type":"docs","section":"Documentation","hidden":false}, - {"type":"style","section":"Styles","hidden":false}, - {"type":"chore","section":"Miscellaneous","hidden":false}, - {"type":"refactor","section":"Code Refactoring","hidden":false}, - {"type":"test","section":"Tests","hidden":false}, - {"type":"build","section":"Build System","hidden":false}, - {"type":"ci","section":"Continuous Integration","hidden":false} - ] - version-file: "config/application.rb" diff --git a/.github/workflows/release-main.yml b/.github/workflows/release-main.yml deleted file mode 100644 index 87a403e5..00000000 --- a/.github/workflows/release-main.yml +++ /dev/null @@ -1,37 +0,0 @@ -# This workflow creates a release pull request whenever a change is pushed to 'main'. -# When the release pull request is merged into main, it will automatically create and tag a new -# release version. - -name: Release automation -on: - push: - branches: [main] -jobs: - release-please: - name: Create a new release - runs-on: ubuntu-latest - steps: - - uses: google-github-actions/release-please-action@v3 - id: release - with: - token: ${{ secrets.GH_TOKEN }} - release-type: ruby - package-name: nla-arclight - bump-minor-pre-major: true - bump-patch-for-minor-pre-major: true - include-v-in-tag: false - changelog-types: >- - [ - {"type":"feat","section":"Features","hidden":false}, - {"type":"fix","section":"Bug Fixes","hidden":false}, - {"type":"perf","section":"Performance Improvements","hidden":false}, - {"type":"revert","section":"Reverts","hidden":false}, - {"type":"docs","section":"Documentation","hidden":false}, - {"type":"style","section":"Styles","hidden":false}, - {"type":"chore","section":"Miscellaneous","hidden":false}, - {"type":"refactor","section":"Code Refactoring","hidden":false}, - {"type":"test","section":"Tests","hidden":false}, - {"type":"build","section":"Build System","hidden":false}, - {"type":"ci","section":"Continuous Integration","hidden":false} - ] - version-file: "config/application.rb" diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 00000000..3ebd6c84 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,23 @@ +# This workflow creates a release pull request whenever a change is pushed to 'main'. +# When the release pull request is merged into 'main', it will automatically create and tag a new +# release version. + +name: Release automation +on: + push: + branches: + - "main" + - "hotfix/*" +jobs: + release-please: + permissions: + contents: write + pull-requests: write + name: Create a new release + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + id: release + with: + token: ${{ secrets.BLACKLIGHT_RELEASE_TOKEN }} + target-branch: ${{ github.ref_name }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index b5b0b8ec..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,38 +0,0 @@ -# This workflow creates a release pull request whenever a change is pushed to 'main'. -# When the release pull request is merged into main, it will automatically create and tag a new -# release version. - -name: Release automation -on: - push: - branches: [release] -jobs: - release-please: - name: Create a new release - runs-on: ubuntu-latest - steps: - - uses: google-github-actions/release-please-action@v3 - id: release - with: - token: ${{ secrets.GH_TOKEN }} - default-branch: release - release-type: ruby - package-name: nla-arclight - bump-minor-pre-major: true - bump-patch-for-minor-pre-major: true - include-v-in-tag: false - changelog-types: >- - [ - {"type":"feat","section":"Features","hidden":false}, - {"type":"fix","section":"Bug Fixes","hidden":false}, - {"type":"perf","section":"Performance Improvements","hidden":false}, - {"type":"revert","section":"Reverts","hidden":false}, - {"type":"docs","section":"Documentation","hidden":false}, - {"type":"style","section":"Styles","hidden":false}, - {"type":"chore","section":"Miscellaneous","hidden":false}, - {"type":"refactor","section":"Code Refactoring","hidden":false}, - {"type":"test","section":"Tests","hidden":false}, - {"type":"build","section":"Build System","hidden":false}, - {"type":"ci","section":"Continuous Integration","hidden":false} - ] - version-file: "config/application.rb" diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 00000000..95a37e3e --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "3.2.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 00000000..e05e640d --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,71 @@ +{ + "release-type": "ruby", + "packages": { + ".": { + "release-type": "ruby", + "package-name": "nla-arclight", + "bootstrap-sha": "f3ade93168185ad34ffbe2fb31b0ac00e5fa3660", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "include-v-in-tag": false, + "version-file": "config/application.rb", + "changelog-sections": [ + { + "type": "feat", + "section": "Features", + "hidden": false + }, + { + "type": "fix", + "section": "Bug Fixes", + "hidden": false + }, + { + "type": "perf", + "section": "Performance Improvements", + "hidden": false + }, + { + "type": "revert", + "section": "Reverts", + "hidden": false + }, + { + "type": "docs", + "section": "Documentation", + "hidden": false + }, + { + "type": "style", + "section": "Styles", + "hidden": false + }, + { + "type": "chore", + "section": "Miscellaneous", + "hidden": false + }, + { + "type": "refactor", + "section": "Code Refactoring", + "hidden": false + }, + { + "type": "test", + "section": "Tests", + "hidden": false + }, + { + "type": "build", + "section": "Build System", + "hidden": false + }, + { + "type": "ci", + "section": "Continuous Integration", + "hidden": false + } + ] + } + } +}