Skip to content

Commit 9f6a8fc

Browse files
Remove publish-to-anaconda job in release workflow (#456)
- This was only necessary if we wanted to publish to the e3sm channel. However, we are exclusively using conda-forge now.
1 parent 1fa170b commit 9f6a8fc

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

.github/workflows/release_workflow.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -75,44 +75,3 @@ jobs:
7575
directory: gh-pages
7676
github_token: ${{ secrets.GITHUB_TOKEN }}
7777
force: true
78-
79-
publish-to-anaconda:
80-
runs-on: ubuntu-latest
81-
timeout-minutes: 10
82-
defaults:
83-
run:
84-
shell: bash -l {0}
85-
steps:
86-
- uses: actions/checkout@v2
87-
88-
- name: Cache Conda
89-
uses: actions/cache@v2
90-
env:
91-
# Increase this value to reset cache if conda/e3sm_diags_env_dev.yml has not changed in the workflow
92-
CACHE_NUMBER: 0
93-
with:
94-
path: ~/conda_pkgs_dir
95-
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-publish
96-
97-
- name: Set up Conda Environment
98-
uses: conda-incubator/setup-miniconda@v2
99-
with:
100-
activate-environment: "e3sm_diags_publishing"
101-
channel-priority: strict
102-
python-version: 3.7
103-
auto-update-conda: true
104-
# IMPORTANT: This needs to be set for caching to work properly!
105-
use-only-tar-bz2: true
106-
107-
- name: Additional Conda Config
108-
run: |
109-
conda install anaconda-client conda-build conda-verify
110-
conda config --set anaconda_upload no
111-
112-
- name: Build Conda Package
113-
run: conda build -c conda-forge --output-folder . .
114-
115-
- name: Publish to Anaconda
116-
env:
117-
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
118-
run: anaconda upload --label main noarch/*.tar.bz2 --force

0 commit comments

Comments
 (0)