diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 00000000..433a812e --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,23 @@ +changelog: + categories: + - title: 🚀 New Features + labels: + - feature + - title: 📄 New Documentation + labels: + - documentation + - title: 🐛 Bug Fixes + labels: + - bug + - title: 🔧 Refactoring + labels: + - refactor + - title: ✅ Changes to GitHub Actions + labels: + - actions + - title: 🎉 Changes for Release + labels: + - release + - title: Other Changes + labels: + - "*" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..81f32b14 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: cargo publish + +on: + release: + types: + - published + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: login + run: cargo login ${{ secrets.CARGO_TOKEN }} + + - name: publish + run: cargo publish diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8dc446ca..e83f63fe 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,11 +2,18 @@ name: Rust on: pull_request: - branches: - - develop + paths: + - .github/workflows/rust.yml + - "**.toml" + - "**.rs" + push: branches: - develop + paths: + - .github/workflows/rust.yml + - "**.toml" + - "**.rs" jobs: build: @@ -37,3 +44,12 @@ jobs: - name: Run tests run: cargo test --verbose --tests continue-on-error: ${{ matrix.rust == 'nightly' }} + + - name: Build for examples + run: cargo build --verbose + working-directory: examples + + - name: Run tests for examples + run: cargo test --verbose --tests + continue-on-error: ${{ matrix.rust == 'nightly' }} + working-directory: examples