Skip to content

Commit

Permalink
Added Release action
Browse files Browse the repository at this point in the history
  • Loading branch information
EEstevanell committed Feb 6, 2024
1 parent 6065bda commit 6a5c060
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release AutoGOAL Contribs to PyPI

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9.16
architecture: x64

- name: Setup dependencies and build
run: |
pip install poetry==1.2
poetry config virtualenvs.create false
poetry install
poetry build
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: autogoal/dist
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dill = "^0.3.6"
yamlable = "^1.1.1"
requests = "^2.28.2"
uvicorn = "^0.21.1"
autogoal = "^1.0.1a1"


[build-system]
Expand Down

0 comments on commit 6a5c060

Please sign in to comment.