Skip to content

Commit

Permalink
馃敄 Release version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Luanee committed Sep 22, 2023
1 parent 03c7873 commit efa2643
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,7 @@ on:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.11
cache-dependency-path: pyproject.toml
- run: |
pip install poetry
poetry build
- uses: actions/upload-artifact@v3
with:
path: ./dist

publish:
needs: ['build']
environment: 'publish'
name: Publish release to PyPi

Expand All @@ -30,7 +14,19 @@ jobs:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/download-artifact@v3
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11
cache-dependency-path: pyproject.toml
- uses: actions/cache@v3
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-publish
- run: |
pip install poetry
poetry build
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.8.6
with:
Expand Down

0 comments on commit efa2643

Please sign in to comment.