mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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.7']
|
|
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/' }}
|