Skip to content

Commit

Permalink
Simplified upload scripts removing the use of external actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Old-Shatterhand committed Apr 5, 2024
1 parent 8242481 commit f73ceb9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Publish DataSAIL to Conda
uses: Old-Shatterhand/publish-conda-multichannel-action@v0.0.11
with:
AnacondaToken: ${{ secrets.DATASAIL_ANACONDA_TOKEN }}
Versions: "3.8,3.9,3.10,3.11,3.12"
Folder: "recipe"
Platforms: "osx-64"
env:
ANACONDA_TOKEN: ${{ secrets.DATASAIL_ANACONDA_TOKEN }}
shell: bash -l {0}
run: |
conda-build -q --variants "{python: [3.8, 3.9, 3.10, 3.11, 3.12]}" -c conda-forge -c bioconda --output-folder . --no-test recipe
conda convert -p osx-64 linux-64/*.tar.bz2
anaconda -t "$ANACONDA_TOKEN" upload linux-64/*.tar.bz2
anaconda -t "$ANACONDA_TOKEN" upload osx-64/*.tar.bz2
18 changes: 12 additions & 6 deletions .github/workflows/publish_lite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Publish DataSAIL-lite to Conda
uses: Old-Shatterhand/publish-conda-multichannel-action@v0.0.11
with:
AnacondaToken: ${{ secrets.DATASAIL_ANACONDA_TOKEN }}
Versions: "3.8,3.9,3.10,3.11,3.12"
Folder: "recipe_lite"
Platforms: "osx-64,osx-arm64,win-64"
env:
ANACONDA_TOKEN: ${{ secrets.DATASAIL_ANACONDA_TOKEN }}
shell: bash -l {0}
run: |
conda-build -q --variants "{python: [3.8, 3.9, 3.10, 3.11, 3.12]}" -c conda-forge -c bioconda --output-folder . --no-test recipe_lite
conda convert -p osx-64 linux-64/*.tar.bz2
conda convert -p osx-arm64 linux-64/*.tar.bz2
conda convert -p win-64 linux-64/*.tar.bz2
anaconda -t "$ANACONDA_TOKEN" upload linux-64/*.tar.bz2
anaconda -t "$ANACONDA_TOKEN" upload osx-64/*.tar.bz2
anaconda -t "$ANACONDA_TOKEN" upload osx-arm64/*.tar.bz2
anaconda -t "$ANACONDA_TOKEN" upload win-64/*.tar.bz2

0 comments on commit f73ceb9

Please sign in to comment.