-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.24 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release
on:
release:
types:
- published
jobs:
pypi:
name: pypi
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.7'
- name: Install requirements
run: |
pip install -U pip wheel setuptools
pip install -q -r requirements/deploifai.txt -r requirements/cli.txt -r requirements/dev.txt
- name: Build distribution packages
run: python -m build
- name: Release to PyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_API_TOKEN }}
run: twine upload -r pypi --skip-existing dist/*
homebrew:
name: homebrew
runs-on: ubuntu-latest
steps:
- name: Dispatch release event to homebrew-deploifai repo
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.PAT_GITHUB_ACTIONS }}
repository: deploifai/homebrew-deploifai
event-type: release
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "tag": "${{ github.event.release.tag_name }}", "version": "${{ github.event.release.tag_name }}"}'