Skip to content

Commit 5440c05

Browse files
authored
Merge pull request #44 from kmaehashi/add-release-workflow
add release workflow
2 parents 7e971a5 + caecacc commit 5440c05

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Publish to PyPI"
2+
on:
3+
release:
4+
types: [published]
5+
workflow_dispatch:
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-22.04
10+
environment:
11+
name: release
12+
url: https://pypi.org/project/atwiki-python/
13+
permissions:
14+
id-token: write
15+
steps:
16+
- name: Git Checkout
17+
uses: actions/checkout@v3
18+
- name: Setup Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.11'
22+
- name: Install Dependencies
23+
run: python3 -m pip install build --user
24+
- name: Build Packages
25+
run: python3 -m build --sdist --wheel --outdir dist/ .
26+
- name: Publish to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)