Skip to content

Commit

Permalink
Update and rename publish_on_tag.yml to release_on_tag.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson authored Oct 25, 2024
1 parent 919c034 commit d77336a
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@

# yamllint disable rule:line-length

name: Publish on tag
name: Release on tag

on: # yamllint disable-line rule:truthy
push:

Check failure on line 8 in .github/workflows/release_on_tag.yml

View workflow job for this annotation

GitHub Actions / build-linux (3.8)

8:8 [empty-values] empty value in block mapping

Check failure on line 8 in .github/workflows/release_on_tag.yml

View workflow job for this annotation

GitHub Actions / build-linux (3.9)

8:8 [empty-values] empty value in block mapping

Check failure on line 8 in .github/workflows/release_on_tag.yml

View workflow job for this annotation

GitHub Actions / build-linux (3.10)

8:8 [empty-values] empty value in block mapping

Check failure on line 8 in .github/workflows/release_on_tag.yml

View workflow job for this annotation

GitHub Actions / build-linux (3.11)

8:8 [empty-values] empty value in block mapping
tags:
- 'v[0-9]+.[0-9]+.[0-9]*'

jobs:
publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/prod' && "contains(github.event.head_commit.message, '[ci-release]')"
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -20,6 +19,14 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: PyProject and create tag
id: create-tag
env:
VERSION: ${{ (echo $github.event.head_commit.message | cut -d ":" -f2) }}
run: |

Check failure on line 26 in .github/workflows/release_on_tag.yml

View workflow job for this annotation

GitHub Actions / build-linux (3.8)

26:15 [trailing-spaces] trailing spaces

Check failure on line 26 in .github/workflows/release_on_tag.yml

View workflow job for this annotation

GitHub Actions / build-linux (3.9)

26:15 [trailing-spaces] trailing spaces

Check failure on line 26 in .github/workflows/release_on_tag.yml

View workflow job for this annotation

GitHub Actions / build-linux (3.10)

26:15 [trailing-spaces] trailing spaces

Check failure on line 26 in .github/workflows/release_on_tag.yml

View workflow job for this annotation

GitHub Actions / build-linux (3.11)

26:15 [trailing-spaces] trailing spaces
poetry version ${{ env.VERSION }}
git tag -a ${{ env.VERSION }} -m ${{ env.VERSION }}
git push prod
- name: Publish package to PyPI
id: publish-pacakge
run: |
Expand Down

0 comments on commit d77336a

Please sign in to comment.