Skip to content

Commit

Permalink
ci: Upgrading to use v4 release please
Browse files Browse the repository at this point in the history
  • Loading branch information
dandxy89 committed Mar 14, 2024
1 parent f385929 commit bf4d783
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 57 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/cargo_machete.yml
@@ -0,0 +1,14 @@
name: Cargo Machete

on:
pull_request:
branches: "*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Machete
uses: bnjbvr/cargo-machete@main
5 changes: 0 additions & 5 deletions .github/workflows/cargo_test.yml
@@ -1,13 +1,8 @@
on:
push:
branches:
- "main"
pull_request:
types: [assigned, opened, synchronize, reopened]
paths:
- "**.rs"
- "**.pest"
- "CHANGELOG.md"

name: Cargo Test

Expand Down
26 changes: 4 additions & 22 deletions .github/workflows/release.yml
Expand Up @@ -3,34 +3,16 @@ on:
branches:
- "main"

name: Release Curation
name: Release Please Action

permissions:
contents: write
pull-requests: write
repository-projects: write
contents: write

jobs:
release-please:
runs-on: ubuntu-latest
if: "${{ !startsWith(github.event.head_commit.message, 'chore(main): release') }}"
steps:
- uses: google-github-actions/release-please-action@v3
- uses: google-github-actions/release-please-action@v4
with:
pull-request-header: New Release
release-type: rust
package-name: release-please-action
changelog-types: >
[
{ "type": "build", "section": "Build System", "hidden": false },
{ "type": "ci", "section": "Continuous Integration", "hidden": false },
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": true },
{ "type": "docs", "section": "Documentation", "hidden": false },
{ "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": "refactor", "section": "Code Refactoring", "hidden": false },
{ "type": "style", "section": "Styles", "hidden": true },
{ "type": "test", "section": "Tests", "hidden": true }
]
token: ${{ secrets.GH_PAT }}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
@@ -0,0 +1,3 @@
{
".": "1.1.2"
}
58 changes: 29 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -3,7 +3,7 @@ name = "lp_parser_rs"
version = "1.1.2"
edition = "2021"
authors = ["Dan Dixey", "Dan Dixey <dan@functorml.co.uk>"]
rust-version = "1.66.1"
rust-version = "1.61.0"
license = "MIT OR Apache-2.0"
description = "A Rust parser for the LP file format."
keywords = ["linear-programming", "optimization", "parser", "math", "solver"]
Expand Down
74 changes: 74 additions & 0 deletions release-please-config.json
@@ -0,0 +1,74 @@
{
"bootstrap-sha": "3c94a8cd1312a4a68485121e21e277bb1620f292",
"packages": {
".": {
"changelog-path": "CHANGELOG.md",
"release-type": "rust",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false
}
},
"release-type": "rust",
"pull-request-header": "New Release",
"pull-request-title-pattern": "chore(main): release ${version}",
"changelog-sections": [
{
"type": "build",
"section": "Build System",
"hidden": false
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": false
},
{
"type": "chore",
"section": "Miscellaneous Chores",
"hidden": false
},
{
"type": "docs",
"section": "Documentation",
"hidden": false
},
{
"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": "refactor",
"section": "Code Refactoring",
"hidden": false
},
{
"type": "style",
"section": "Styles",
"hidden": false
},
{
"type": "test",
"section": "Tests",
"hidden": false
}
],
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

0 comments on commit bf4d783

Please sign in to comment.