Skip to content

Commit

Permalink
fix: fix release and publish scripts.
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 2798c05 commit 7718856
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
name: Semantic Release

name: Python package
on:
push:
branches:
- master

tags:
- "v*.*.*"
jobs:
release:
build:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write

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

- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Semantic Release

on:
push:
branches:
- master

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

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

- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7718856

Please sign in to comment.