2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 08:16:28 +00:00
bench/.github/workflows/release.yml

29 lines
791 B
YAML
Raw Normal View History

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:
- name: Checkout Entire Repository
2021-02-03 04:51:40 +00:00
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js v12
2021-02-03 04:51:40 +00:00
uses: actions/setup-node@v1
with:
node-version: 12
- 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 }}
TEST_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TEST_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
2021-02-03 04:51:40 +00:00
run: npx semantic-release