-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (31 loc) · 832 Bytes
/
release.yml
File metadata and controls
36 lines (31 loc) · 832 Bytes
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
name: Release
on:
workflow_dispatch:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
# disallows two or more release jobs to run in parallel
concurrency: release
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: '**/requirements-dev.txt'
- name: Bump version and release to PyPi
run: |
make venv
git config --global user.name 'Double.Cloud Bot'
git config --global user.email 'bot@double.cloud'
make release
env:
REPOSITORY_USERNAME: __token__
REPOSITORY_PASSWORD: ${{ secrets.PYPI_TOKEN }}