diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1b008f9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +name: Build and Upload Conda Package + +on: + release: + types: + - created + +jobs: + build-and-upload-conda-package: + if: true + runs-on: ubuntu-latest + #${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Miniconda + uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + python-version: 3.9 + + - name: Install conda-build + run: | + conda init + source ~/.bashrc + conda activate base + conda install -y -c conda-forge conda-build anaconda-client + + - name: Build and Upload Conda package + env: + ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} + run: | + cd recipe + conda init + source ~/.bashrc + conda activate base + conda-build . --token $ANACONDA_TOKEN --user tcevaer -c tcevaer -c conda-forge diff --git a/pyproject.toml b/pyproject.toml index 368728d..32fcf69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,9 @@ dependencies = [ "scipy", "fsspec", "aiohttp", + "xarray-safe-s1", + "xradarsat2", + "xarray-safe-rcm" ] dynamic = ["version"]