Skip to content

Commit

Permalink
Add manual trigger for pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
fpavogt authored Jul 12, 2024
1 parent 926c1f5 commit 6611e62
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/CI_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
# at the repo or organization levels to upload the package via API authentification.
#
# It will trigger the moment a new release or pre-release is being published.
# Edit 12.07.2024: added the option for a manual trigger
#
# Copyright (c) 2022-2023 fpavogt; [email protected]
# Copyright (c) 2022-2024 fpavogt; [email protected]

name: CI_pypi

on:
workflow_dispatch: # Allows to trigger the release to pypi manually
release:
types: [published]

Expand All @@ -18,9 +20,17 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Checkout current repository
- name: Checkout current repository (auto release)
if: ${{ github.event_name == 'release' }}
uses: actions/checkout@v4

- name: Checkout current repository (manual release from master)
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/checkout@v4
with:
repository: MeteoSwiss/ampycloud
ref: master

- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 6611e62

Please sign in to comment.