-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (58 loc) · 2.78 KB
/
python-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package
on:
release:
types: [published]
workflow_dispatch:
jobs:
test:
uses: Arlula/python-core-sdk/.github/workflows/python-test.yml@master
secrets:
TEST_API_KEY: ${{ secrets.TEST_API_KEY}}
TEST_API_SECRET: ${{ secrets.TEST_API_SECRET}}
with:
TEST_API_HOST: ${{ vars.TEST_API_HOST }}
TEST_API_ARCHIVE_ORDERING_ID_1: ${{ vars.TEST_API_ARCHIVE_ORDERING_ID_1 }}
TEST_API_ARCHIVE_LICENSE_HREF_1: ${{ vars.TEST_API_ARCHIVE_LICENSE_HREF_1 }}
TEST_API_ARCHIVE_BUNDLE_KEY_1: ${{ vars.TEST_API_ARCHIVE_BUNDLE_KEY_1 }}
TEST_API_ARCHIVE_ORDERING_ID_2: ${{ vars.TEST_API_ARCHIVE_ORDERING_ID_2 }}
TEST_API_ARCHIVE_LICENSE_HREF_2: ${{ vars.TEST_API_ARCHIVE_LICENSE_HREF_2 }}
TEST_API_ARCHIVE_BUNDLE_KEY_2: ${{ vars.TEST_API_ARCHIVE_BUNDLE_KEY_2 }}
TEST_API_ORDER_ID_CAMPAIGNS: ${{ vars.TEST_API_ORDER_ID_CAMPAIGNS }}
TEST_API_ORDER_ID_DATASETS: ${{ vars.TEST_API_ORDER_ID_DATASETS }}
TEST_API_CAMPAIGN_ID: ${{ vars.TEST_API_CAMPAIGN_ID }}
TEST_API_DATASET_ID: ${{ vars.TEST_API_DATASET_ID }}
TEST_API_RESOURCE_ID: ${{ vars.TEST_API_RESOURCE_ID }}
TEST_API_COLLECTION_ID: ${{ vars.TEST_API_COLLECTION_ID }}
TEST_API_COLLECTION_ITEM_ID: ${{ vars.TEST_API_COLLECTION_ITEM_ID }}
TEST_API_TASKING_ORDERING_ID_1: ${{ vars.TEST_API_TASKING_ORDERING_ID_1 }}
TEST_API_TASKING_BUNDLE_KEY_1: ${{ vars.TEST_API_TASKING_BUNDLE_KEY_1 }}
TEST_API_TASKING_LICENSE_HREF_1: ${{ vars.TEST_API_TASKING_LICENSE_HREF_1 }}
TEST_API_TASKING_PRIORITY_KEY_1: ${{ vars.TEST_API_TASKING_PRIORITY_KEY_1 }}
TEST_API_TASKING_CLOUD_1: ${{ vars.TEST_API_TASKING_CLOUD_1 }}
TEST_API_TASKING_ORDERING_ID_2: ${{ vars.TEST_API_TASKING_ORDERING_ID_2 }}
TEST_API_TASKING_BUNDLE_KEY_2: ${{ vars.TEST_API_TASKING_BUNDLE_KEY_2 }}
TEST_API_TASKING_LICENSE_HREF_2: ${{ vars.TEST_API_TASKING_LICENSE_HREF_2 }}
TEST_API_TASKING_PRIORITY_KEY_2: ${{ vars.TEST_API_TASKING_PRIORITY_KEY_2 }}
TEST_API_TASKING_CLOUD_2: ${{ vars.TEST_API_TASKING_CLOUD_2 }}
deploy:
runs-on: ubuntu-latest
needs: test
permissions:
id-token: write
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 setuptools wheel
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1