Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2013 conda repo pr test - DO NOT MERGE #2019

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/actions/publish-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ inputs:
repository:
description: 'Anaconda repository'
required: true
default: 'mantidimaging'
repository-old:
description: 'Anaconda repository - old'
required: true
default: 'mantid'
label:
description: 'Label'
Expand All @@ -12,6 +16,9 @@ inputs:
token:
description: 'Anaconda API Token'
required: true
token-old:
description: 'Anaconda API Token - old'
required: true

description: Build conda package
runs:
Expand All @@ -35,8 +42,10 @@ runs:
shell: bash -l {0}
run: |
conda activate build-env
conda config --set anaconda_upload yes
conda config --set anaconda_upload no
# if the upload silently fails - check the token expiration. Conda can fail silently!
conda mambabuild --user ${{ inputs.repository }} --token ${{ inputs.token }} --label ${{ inputs.label }} $GITHUB_WORKSPACE/conda |& tee upload.log
conda mambabuild $GITHUB_WORKSPACE/conda
anaconda -t ${{ inputs.token }} upload --user ${{ inputs.repository }} --label ${{ inputs.label }} ${CONDA_PREFIX}/conda-bld/*/mantidimaging*.tar.bz2 |& tee upload.log
anaconda -t ${{ inputs.token-old }} upload --user ${{ inputs.repository-old }} --label ${{ inputs.label }} ${CONDA_PREFIX}/conda-bld/*/mantidimaging*.tar.bz2
# Check that upload completed
grep "Upload complete" upload.log
6 changes: 3 additions & 3 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ jobs:

# Always label as unstable. Builds of stable releases can be manually labeled to 'main' once tested
- name: publish 'unstable' package
if: github.event_name == 'release' || (github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release')))
uses: ./.github/actions/publish-package
with:
label: unstable
token: ${{ secrets.ANACONDA_API_TOKEN }}
label: upload-test-mike
token: ${{ secrets.ANACONDA_API_TOKEN_MANTIDIMAGING }}
token-old: ${{ secrets.ANACONDA_API_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ jobs:
# Label as 'windows-build-test' for testing purposes.
# To re-enable, use the if rule from the conda workflow and change label to 'unstable' after testing
- name: publish package
if: github.event_name == 'release' || (github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release')))
uses: ./.github/actions/publish-package
with:
label: unstable
token: ${{ secrets.ANACONDA_API_TOKEN }}
label: upload-test-mike
token: ${{ secrets.ANACONDA_API_TOKEN_MANTIDIMAGING }}
token-old: ${{ secrets.ANACONDA_API_TOKEN }}
Loading