diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..f19fb2f --- /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[/-].+/" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..4592d85 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: Cargo Publish + +on: + release: + types: [published] + +env: + CARGO_TERM_COLOR: always + +jobs: + publish: + name: Publish to crates.io + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: cargo publish + working-directory: ./packages/lib + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..61808aa --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,23 @@ +name: Release Drafter + +on: + push: + branches: + - main + # pull_request event is required only for autolabeler + pull_request: + # Only following types are handled by the action, but one can default to all as well + types: [opened, reopened, synchronize] + # pull_request_target event is required for autolabeler to support PRs from forks + # pull_request_target: + # 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 }} diff --git a/Cargo.toml b/Cargo.toml index a8cea6c..1fcefab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ description = "Animation library for Dioxus" version = "0.3.0-alpha.2" edition = "2021" license = "MIT OR Apache-2.0" +repository = "https://github.com/dioxus-community/dioxus-material" [workspace] members = [