Skip to content

Commit

Permalink
build: change publish pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
Madson Luiz Dantas Dias (UFC) committed Mar 18, 2024
1 parent ee5ffef commit 2ec4255
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
name: Publish
name: Semantic Release

on:
push:
branches:
- master
- main

jobs:
build:
name: Publish
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
fetch-depth: '0'
- uses: actions/setup-python@v2
- uses: snok/install-poetry@v1
- run: |
git config user.name github-actions
git config user.email [email protected]
poetry install
poetry run semantic-release publish
env:
REPOSITORY_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
REPOSITORY_USERNAME: ${{ secrets.PYPI_USERNAME }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2ec4255

Please sign in to comment.