mirror of
https://github.com/GuillemCastro/spotify-dl.git
synced 2025-07-03 12:35:32 +02:00
Merge workflows
This commit is contained in:
parent
18194228a5
commit
db6f2ce59e
9 changed files with 206 additions and 204 deletions
42
.github/workflows/create-release.yml
vendored
Normal file
42
.github/workflows/create-release.yml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
name: Create Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release_type:
|
||||
description: 'Type of release to create'
|
||||
required: true
|
||||
default: 'minor'
|
||||
type: choice
|
||||
options:
|
||||
- patch
|
||||
- minor
|
||||
- major
|
||||
|
||||
jobs:
|
||||
|
||||
bump-version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Bump version
|
||||
uses: tj-actions/cargo-bump@v3
|
||||
with:
|
||||
release_type: ${{ github.event.inputs.release_type }}
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "Bump version to v${{ steps.bump-version.outputs.new_version }}"
|
||||
commit_user_name: "github-actions[bot]"
|
||||
commit_user_email: "github-actions[bot]@users.noreply.github.com"
|
||||
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
|
||||
branch: master
|
||||
create-tag:
|
||||
runs-on: ubuntu-latest
|
||||
needs: bump-version
|
||||
steps:
|
||||
- name: Create tag
|
||||
uses: rickstaa/action-create-tag@v1
|
||||
with:
|
||||
tag: v${{ steps.bump-version.outputs.new_version }}
|
||||
message: "Bump version to v${{ steps.bump-version.outputs.new_version }}"
|
Loading…
Add table
Add a link
Reference in a new issue