diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..c02998c --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,48 @@ +name-template: "Release v$RESOLVED_VERSION 🦀" +tag-template: "v$RESOLVED_VERSION" +categories: + - title: "🚀 Features" + label: "feature" + - title: "🐛 Bug Fixes" + label: "bug" + - title: "♻️ Refactor" + label: "refactor" + - title: "📝 Documentation" + label: "documentation" + - title: "🧰 Maintenance" + labels: + - "chore" + - "dependencies" +change-template: "- $TITLE @$AUTHOR (#$NUMBER)" +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. +version-resolver: + major: + labels: + - "major" + minor: + labels: + - "minor" + patch: + labels: + - "patch" + default: patch +template: | + ## Changes + + $CHANGES +autolabeler: + - label: feature + branch: + - "/^feat(ure)?[/-].+/" + - label: bug + branch: + - "/^fix[/-].+/" + - label: refactor + branch: + - "/(refactor|refactoring)[/-].+/" + - label: documentation + branch: + - "/doc(s|umentation)[/-].+/" + - label: chore + branch: + - "/^chore[/-].+/" \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..8fcfa5c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: Cargo Publish + +on: + workflow_dispatch: + release: + types: [published] + +env: + CARGO_TERM_COLOR: always + +jobs: + publish: + name: Publish to crate.io + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..1589064 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,19 @@ +name: Release Drafter + +on: + push: + branches: + - main + + pull_request: + types: [opened, reopened, synchronize] + +jobs: + update_release_draft: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file