-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (40 loc) · 1.54 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: Auto-release on PR merge
on:
# ATM, this is the closest trigger to a PR merging
push:
branches:
- main
workflow_dispatch:
jobs:
auto-release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download auto
run: |
#curl -vL -o - "$(curl -fsSL https://api.github.com/repos/intuit/auto/releases/latest | jq -r '.assets[] | select(.name == "auto-linux.gz") | .browser_download_url')" | gunzip > ~/auto
# Initially pin to 10.16.1 so we don't break if & when
# <https://github.com/intuit/auto/issues/1778> is fixed.
# Needed to progress to 11.1.6 (current release) to have
# a fix for https://github.com/intuit/auto/issues/2432,
# while 1778 was still open/left without comment.
wget -O- https://github.com/intuit/auto/releases/download/v11.1.6/auto-linux.gz | gunzip > ~/auto
chmod a+x ~/auto
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '^3.8'
- name: Install Python dependencies
run: python -m pip install build bump2version twine
- name: Create release
run: ~/auto shipit
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
# vim:set sts=2: