Skip to content

Commit 7a94d9b

Browse files
authored
Merge pull request #5 from Rallista/feat/release-ci
Added release workflow
2 parents 364005b + 0f4d5e8 commit 7a94d9b

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release Maplibre-SwiftUI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
inputs:
9+
bump_version_scheme:
10+
type: choice
11+
description: 'Bump version scheme'
12+
required: true
13+
default: 'patch'
14+
options:
15+
- 'patch'
16+
- 'minor'
17+
- 'major'
18+
19+
jobs:
20+
release-on-push:
21+
runs-on: ubuntu-latest
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
steps:
25+
- uses: rymndhng/release-on-push-action@master
26+
with:
27+
bump_version_scheme: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'patch' || inputs.bump_version_scheme }}

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Test maplibre-swiftui-dsl-playground
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ "*" ]
66
pull_request:
77
branches: [ main ]
88

0 commit comments

Comments
 (0)