mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Adding version bump workflow
This commit is contained in:
parent
fd6fa2fce4
commit
8676b81821
41
.github/workflows/version-bump.yml
vendored
Normal file
41
.github/workflows/version-bump.yml
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
name: Bump .Net Version
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ version-bump ]
|
||||
|
||||
jobs:
|
||||
bump:
|
||||
name: Version bump
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: version-bump
|
||||
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.100
|
||||
|
||||
- name: Install dependencies
|
||||
run: dotnet restore
|
||||
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release --no-restore
|
||||
|
||||
- name: Bump versions
|
||||
uses: SiqiLu/dotnet-bump-version@master
|
||||
with:
|
||||
version_files: Kavita.Common/Kavita.Common.csproj
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Merge bump branch -> pr branch
|
||||
uses: devmasx/merge-branch@v1.3.1
|
||||
with:
|
||||
type: now
|
||||
from_branch: version-bump
|
||||
target_branch: ${{ github.event.inputs.branch }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user