Skip to content

Commit

Permalink
Add release job
Browse files Browse the repository at this point in the history
  • Loading branch information
diocas committed Jan 23, 2024
1 parent 424502a commit e475916
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
workflow_dispatch:
inputs:
bump:
description: "Release bump: major, minor or patch"
required: true
default: "patch"

jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: BSFishy/pip-action@v1
with:
packages: |
bump2version
- name: Bump and tag
run: |
git config --local user.email "swan-admins@cern.ch"
git config --local user.name "swan-admins[bot]"
bump2version ${{ github.event.inputs.bump }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.WORKFLOW_ACCESS_TOKEN }}
tags: true

0 comments on commit e475916

Please sign in to comment.