2021-02-04 07:27:17 +00:00
|
|
|
name: Generate Semantic Release and publish on PyPI
|
2021-02-03 04:51:40 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- v5.x
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
2021-02-04 07:27:17 +00:00
|
|
|
- name: Checkout Entire Repository
|
2021-02-03 04:51:40 +00:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-02-04 07:27:17 +00:00
|
|
|
- name: Setup Node.js v12
|
2021-02-03 04:51:40 +00:00
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12
|
2021-02-04 07:27:17 +00:00
|
|
|
- name: Setup dependencies
|
|
|
|
run: |
|
|
|
|
npm install @semantic-release/git @semantic-release/exec --no-save
|
|
|
|
pip install wheel twine
|
|
|
|
- name: Create Release
|
2021-02-03 04:51:40 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-02-04 10:39:42 +00:00
|
|
|
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
|
|
|
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
2021-02-03 04:51:40 +00:00
|
|
|
run: npx semantic-release
|