Bump up9cloud/action-rsync from 1.3 to 1.4 #403
Workflow file for this run
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
name: CD | |
on: [push, pull_request] | |
jobs: | |
pypi: | |
name: build and deploy to PyPI | |
if: github.repository == 'ACCESS-NRI/access-nri-intake-catalog' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
runs-on: "ubuntu-latest" | |
permissions: | |
id-token: write | |
steps: | |
- name: Checkout source | |
uses: actions/[email protected] | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install build dependencies | |
run: python -m pip install build twine | |
- name: Build distributions | |
shell: bash -l {0} | |
run: | | |
git clean -xdf | |
pyproject-build | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
conda: | |
name: build and deploy to conda | |
needs: pypi | |
if: always() && needs.pypi.result == 'success' | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout source | |
uses: actions/[email protected] | |
- name: Setup conda environment | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniconda-version: "latest" | |
python-version: 3.11 | |
environment-file: .conda/environment.yml | |
auto-update-conda: false | |
auto-activate-base: false | |
show-channel-urls: true | |
- name: Build and upload the conda package | |
uses: uibcdf/[email protected] | |
with: | |
meta_yaml_dir: .conda | |
python-version: 3.11 | |
user: accessnri | |
label: main | |
token: ${{ secrets.anaconda_token }} | |