forked from pypa/setuptools
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.06 KB
/
eggs.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
name: Build and upload eggs
on:
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true
default: 'v0.0'
jobs:
build-and-publish-eggs:
name: Build eggs and publish them
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, 3.10.0]
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
ref: ${{ github.event.inputs.version }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build eggs
run: python setup.py egg_info --no-date --tag-build "" bdist_egg
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.RELEASE_TOKEN }}
file: ${{ github.workspace }}/dist/setuptools*
tag: ${{ github.event.inputs.version }}
overwrite: true
file_glob: true