Skip to content

Commit

Permalink
add testpypi github action
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed May 21, 2024
1 parent 685b752 commit 08c7c64
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 206 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/xcube_build_docker.yaml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/xcube_publish_testpypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: publish to TestPyPI

on: push

jobs:
publish-to-testpypi:
name: Publish Python distribution to TestPyPI
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/xcube

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
161 changes: 0 additions & 161 deletions .github/workflows/xcube_workflow.yaml

This file was deleted.

0 comments on commit 08c7c64

Please sign in to comment.