Skip to content

Commit

Permalink
build: fix github action worflow release
Browse files Browse the repository at this point in the history
  • Loading branch information
igobranco committed Jan 7, 2025
1 parent 13632f7 commit 7690390
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 93 deletions.
72 changes: 0 additions & 72 deletions .github/workflows/bump-version.yaml

This file was deleted.

24 changes: 3 additions & 21 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
name: Release
on:
pull_request:
types:
- closed
branches:
- main
push:
tags:
- 'v*'

env:
TUTOR_ROOT: ./.ci/

jobs:
release:
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'bot/v')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Create tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: false
default_prerelease_bump: false
- name: Create a GitHub release
if: steps.tag_version.outputs.new_tag
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Checkout
uses: actions/checkout@v4
- name: setup python
Expand Down

0 comments on commit 7690390

Please sign in to comment.