Skip to content

Commit 7d18af3

Browse files
authored
Create main.yml
1 parent ea39a49 commit 7d18af3

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: publish
2+
3+
# Controls when the workflow will run
4+
on:
5+
6+
# Workflow will run when a release has been published for the package
7+
release:
8+
types:
9+
- published
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
17+
# This workflow contains a single job called "publish"
18+
publish:
19+
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
23+
# Steps represent a sequence of tasks that will be executed as part of the job
24+
steps:
25+
26+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27+
- uses: actions/checkout@v3
28+
29+
- name: Set up Python 3.9
30+
uses: actions/setup-python@v3
31+
with:
32+
python-version: 3.9
33+
cache: pip
34+
35+
- name: To PyPI using Flit
36+
uses: AsifArmanRahman/to-pypi-using-flit@v1
37+
with:
38+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)