fix(auth): run pelican under a PTY so fdp login can re-consent (#12)
#42
Workflow file for this run
This file contains hidden or 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
| # Copyright 2024 General Atomics | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| name: Conda Package CI/CD | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - 'release-*' | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -el {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: prefix-dev/setup-pixi@v0.8.1 | |
| with: | |
| pixi-version: latest | |
| - name: Build Conda package | |
| run: | | |
| pixi global install rattler-build | |
| cd recipe && bash run_build.sh ${HOME}/outdir | |
| - name: Upload to Anaconda | |
| if: startsWith(github.ref, 'refs/tags/release-') | |
| run: | | |
| VERSION="${GITHUB_REF#refs/tags/release-}" | |
| if [[ "$VERSION" =~ (rc|a|b)[0-9] ]]; then | |
| LABEL="staging" | |
| else | |
| LABEL="main" | |
| fi | |
| rattler-build upload anaconda \ | |
| --owner ga-fdp \ | |
| --channel "$LABEL" \ | |
| --api-key ${{ secrets.ANACONDA_API_TOKEN }} \ | |
| --force \ | |
| ${HOME}/outdir/*/*.conda |