-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
||
|
@@ -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: | ||
|