mirror of
https://github.com/sprockets/sprockets-postgres.git
synced 2024-11-14 03:00:19 +00:00
21 lines
540 B
YAML
21 lines
540 B
YAML
|
name: Deployment
|
||
|
on:
|
||
|
push:
|
||
|
branches-ignore: ["*"]
|
||
|
tags: ["*"]
|
||
|
jobs:
|
||
|
deploy:
|
||
|
runs-on: ubuntu-latest
|
||
|
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
|
||
|
container: python:3.8-alpine
|
||
|
steps:
|
||
|
- name: Checkout repository
|
||
|
uses: actions/checkout@v1
|
||
|
- name: Build package
|
||
|
run: python3 setup.py sdist
|
||
|
- name: Publish package
|
||
|
uses: pypa/gh-action-pypi-publish@master
|
||
|
with:
|
||
|
user: __token__
|
||
|
password: ${{ secrets.PYPI_PASSWORD }}
|