-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (31 loc) · 958 Bytes
/
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
name: Release to GitHub, PyPI and Docker Hub
on:
workflow_dispatch:
env:
gh-release-user-name: Ely Deckers
python-version: 3.8
jobs:
build:
runs-on: ubuntu-latest
name: Build and publish release
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v2
with:
python-version: ${{ env.python-version }}
architecture: x64
- run: make release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_RELEASE_USER_EMAIL: ${{ secrets.GH_RELEASE_USER_EMAIL }}
GITHUB_RELEASE_USER_NAME: ${{ env.gh-release-user-name }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN}}