-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |