From 2ec42554b1b444d96055b730743488a20c84c774 Mon Sep 17 00:00:00 2001 From: "Madson Luiz Dantas Dias (UFC)" Date: Mon, 18 Mar 2024 18:42:20 -0300 Subject: [PATCH] build: change publish pipeline. --- .github/workflows/publish.yml | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e4b44c3..1bd76c8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 github-actions@github.com - 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 }}