mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 05:45:37 +08:00
Fixes: https://github.com/galaxyproject/galaxy/issues/16394 Also upgrade code to Python 3.8 syntax with: ``` ack --type=python -f | grep -v '^lib/galaxy/schema/bco/\|^lib/galaxy/schema/drs/\|lib/tool_shed_client/schema/trs.*.py\|^tools/\|^.venv/\|^.tox/' | grep -v '^lib/galaxy/files/sources/\|^lib/galaxy/job_metrics/\|^lib/galaxy/objectstore/\|^lib/galaxy/tool_util/\|^lib/galaxy/util/' | xargs pyupgrade --py38-plus ```
27 lines
948 B
YAML
27 lines
948 B
YAML
name: Publish release artifacts
|
|
on:
|
|
release:
|
|
types: [released, prereleased]
|
|
jobs:
|
|
build-and-publish:
|
|
if: github.repository_owner == 'galaxyproject'
|
|
name: build-and-publish
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.8']
|
|
steps:
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- uses: actions/checkout@v3
|
|
- name: Install script dependencies
|
|
run: pip install galaxy-release-util
|
|
- name: Build and publish
|
|
run: |
|
|
galaxy-release-util build-and-upload --no-confirm
|
|
env:
|
|
TWINE_USERNAME: __token__
|
|
TWINE_PASSWORD: ${{ github.event.release.prerelease && secrets.PYPI_TEST_TOKEN || secrets.PYPI_MAIN_TOKEN }}
|
|
TWINE_REPOSITORY_URL: ${{ github.event.release.prerelease && 'https://test.pypi.org/legacy/' || 'https://upload.pypi.org/legacy/' }}
|