File tree Expand file tree Collapse file tree 1 file changed +0
-41
lines changed Expand file tree Collapse file tree 1 file changed +0
-41
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments