Skip to content

Commit

Permalink
Add action to build eggs
Browse files Browse the repository at this point in the history
Override egg_info options from setup.cfg

Reference: avocado-framework/avocado#5148

Signed-off-by: Ana Guerrero Lopez <[email protected]>
  • Loading branch information
ana committed Nov 23, 2021
1 parent dd5a2ce commit 50222b9
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/eggs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 50222b9

Please sign in to comment.