feat: release action
Browse files
.github/workflows/pypi_release.yml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This workflow uses actions that are not certified by GitHub.
|
2 |
+
# They are provided by a third-party and are governed by
|
3 |
+
# separate terms of service, privacy policy, and support
|
4 |
+
# documentation.
|
5 |
+
|
6 |
+
name: Upload Python Package
|
7 |
+
|
8 |
+
on:
|
9 |
+
release:
|
10 |
+
types: [published]
|
11 |
+
|
12 |
+
jobs:
|
13 |
+
deploy:
|
14 |
+
runs-on: ubuntu-latest
|
15 |
+
steps:
|
16 |
+
- uses: actions/checkout@v3
|
17 |
+
- name: Set up Python
|
18 |
+
uses: actions/setup-python@v3
|
19 |
+
with:
|
20 |
+
python-version: "3.x"
|
21 |
+
- name: Install dependencies
|
22 |
+
run: |
|
23 |
+
python -m pip install --upgrade pip
|
24 |
+
pip install build
|
25 |
+
- name: Build package
|
26 |
+
run: python -m build
|
27 |
+
- name: Publish package
|
28 |
+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
29 |
+
with:
|
30 |
+
user: __token__
|
31 |
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
src/dalle_mini/__init__.py
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
__version__ = "0.0.
|
2 |
|
3 |
from .model import DalleBart, DalleBartProcessor
|
|
|
1 |
+
__version__ = "0.0.6"
|
2 |
|
3 |
from .model import DalleBart, DalleBartProcessor
|