diff --git a/.github/workflows/eggs.yml b/.github/workflows/eggs.yml new file mode 100644 index 0000000000..29fd5eaa55 --- /dev/null +++ b/.github/workflows/eggs.yml @@ -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