Skip to content

Commit

Permalink
Merge pull request #44 from kmaehashi/add-release-workflow
Browse files Browse the repository at this point in the history
add release workflow
  • Loading branch information
kmaehashi authored Jul 15, 2023
2 parents 7e971a5 + caecacc commit 5440c05
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Publish to PyPI"
on:
release:
types: [published]
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-22.04
environment:
name: release
url: https://pypi.org/project/atwiki-python/
permissions:
id-token: write
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Dependencies
run: python3 -m pip install build --user
- name: Build Packages
run: python3 -m build --sdist --wheel --outdir dist/ .
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 5440c05

Please sign in to comment.