Skip to content

Commit

Permalink
Dry run anaconda upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidt0x committed Oct 31, 2023
1 parent 75c1df2 commit a999761
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-latest]
os: [ubuntu-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -90,7 +90,16 @@ jobs:
ls -l ${{ steps.build-package.outputs.PACKAGE_PATH }}
- name: Upload to Anaconda
if: github.event_name == 'release' && github.event.action == 'published'
# if: github.event_name == 'release' && github.event.action == 'published'
run: |
export CONDA_HOME=$CONDA
anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload ${{ steps.build-package.outputs.PACKAGE_PATH }} --force
export ANACONDA_API_TOKEN=${{ secrets.ANACONDA_TOKEN }}
SHORT_SHA="$(git rev-parse --short $GITHUB_SHA)"
for dirname in ${{ steps.build-package.outputs.PACKAGE_PATH }}/*; do
if [ -d "$dirname" ]; then
for filename in $dirname/*; do
if [ "${filename: -8}" == ".tar.bz2" ]; then
echo "anaconda upload $filename"
# anaconda upload $filename
fi
done
fi

0 comments on commit a999761

Please sign in to comment.