Skip to content

Merge pull request #86 from con/enh-orcid #11

Merge pull request #86 from con/enh-orcid

Merge pull request #86 from con/enh-orcid #11

Workflow file for this run

name: Auto-release on PR merge
on:
# ATM, this is the closest trigger to a PR merging
push:
branches:
- master
workflow_dispatch:
jobs:
auto-release:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
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
# Pin to 10.16.1 so we don't break if & when
# <https://github.com/intuit/auto/issues/1778> is fixed.
wget -O- https://github.com/intuit/auto/releases/download/v10.16.1/auto-linux.gz | gunzip > ~/auto
chmod a+x ~/auto
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '^3.7'
- name: Install Python dependencies
run: python -m pip install build bump2version twine
- name: Create release
run: |
if [ "${{ github.event_name }}" = workflow_dispatch ]
then opts=
else opts=--only-publish-with-release-label
fi
~/auto shipit $opts
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
# vim:set sts=2: