diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..5448d44 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release Maplibre-SwiftUI + +on: + push: + branches: + - main + workflow_dispatch: + inputs: + bump_version_scheme: + type: choice + description: 'Bump version scheme' + required: true + default: 'patch' + options: + - 'patch' + - 'minor' + - 'major' + +jobs: + release-on-push: + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: rymndhng/release-on-push-action@master + with: + bump_version_scheme: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'patch' || inputs.bump_version_scheme }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 769cf58..b810ec5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Test maplibre-swiftui-dsl-playground on: push: - branches: [ main ] + branches: [ "*" ] pull_request: branches: [ main ]