Skip to content

Commit

Permalink
Merge pull request #5 from Rallista/feat/release-ci
Browse files Browse the repository at this point in the history
Added release workflow
  • Loading branch information
Archdoog committed Feb 9, 2024
2 parents 364005b + 0f4d5e8 commit 7a94d9b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test maplibre-swiftui-dsl-playground

on:
push:
branches: [ main ]
branches: [ "*" ]
pull_request:
branches: [ main ]

Expand Down

0 comments on commit 7a94d9b

Please sign in to comment.