-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.33 KB
/
deploy.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
46
name: Deploy
on:
push:
tags:
- '[0-9].[0-9].[0-9]'
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade wheel
- name: Create wheel
run: python setup.py bdist_wheel --universal
- name: Determine new version string
id: release_version
run: echo ::set-output name=VERSION::$(echo ${GITHUB_REF:10})
- name: Publish 📦 to Github
uses: softprops/action-gh-release@v1
with:
files: dist/txoauth2-*-py2.py3-none-any.whl
body_path: changelogs/current.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Archive changelog
run: |
mv changelogs/current.txt changelogs/${{ steps.release_version.outputs.VERSION }}.txt
echo -n -e "\n" > changelogs/current.txt
- name: Push archived changelog
uses: EndBug/add-and-commit@v7
with:
add: changelogs
author_name: Github Actions
author_email: automations@github-actions.com
branch: master
message: 'Archive changelog'