Skip to content

wip(CI) start adding CI/CD #1

wip(CI) start adding CI/CD

wip(CI) start adding CI/CD #1

name: Continuous Deployment
on:
workflow_run:
workflows: ["Continuous Integration"]
types: [completed]
push:
branches:
- "main"
- "add_CI"
pull_request:
branches:
- "main"
- "add_CI"
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8.13"
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.8.13
auto-activate-base: false
- name: Deploy to PyPI
shell: bash -l {0}
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
conda create -n deploy_env python=3.8.13 libgdal=3.5.2 build twine -c conda-forge -y
conda activate deploy_env
python -m build