forked from frappe/bench
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 886 Bytes
/
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
name: Generate Semantic Release and publish on PyPI
on:
push:
branches:
- v5.x
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 20
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Setup dependencies
run: |
npm install @semantic-release/git @semantic-release/exec --no-save
python3 -m pip install wheel twine
python3 -m pip install git+https://github.com/pypa/[email protected]
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
run: npx semantic-release