Skip to content

chore: add gh sponsor #68

chore: add gh sponsor

chore: add gh sponsor #68

Workflow file for this run

name: Semantic Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.TRYCERATOPS_GITHUB_TOKEN }}
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install poetry
uses: Gr1N/setup-poetry@v7
- name: Cache poetry dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
poetry config virtualenvs.create false
poetry install
# Can't use: relekang/python-semantic-release@master because
# it's running Python 3.7, and Tryceratops requires >=3.8
- name: Python Semantic Release
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
semantic-release publish -D commit_author="github-actions <[email protected]>"
env:
GH_TOKEN: ${{secrets.TRYCERATOPS_GITHUB_TOKEN}}
PYPI_TOKEN: ${{secrets.PYPI_TOKEN}}