Skip to content

Commit

Permalink
bump build number for dscrutils recipe (#15)
Browse files Browse the repository at this point in the history
* bump build number for dscrutils recipe

* try to upload to anaconda

* use upload token in anaconda upload command

* dont use token directly in command

for security

* only run anaconda upload on main branch
  • Loading branch information
aryarm authored Nov 14, 2024
1 parent 1c2a461 commit 41ff1c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,17 @@ jobs:
bioconda-utils build --packages ${{ matrix.packagename }}
- name: Upload built package as GitHub artifact
id: artifact-upload
uses: "actions/upload-artifact@v4"
with:
name: ${{ matrix.packagename }}-${{ matrix.os }}
path: ${{ env.CONDA }}/envs/biobuild/conda-bld/
if-no-files-found: 'ignore'

# - name: Upload built package to Anaconda
# shell: bash -el {0}
# env:
# ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
# if: ${{ env.ANACONDA_API_TOKEN == '' }}
# run: |
# anaconda upload ${{ env.CONDA }}/envs/biobuild/conda-bld/linux-64/*.tar.bz2
- name: Upload built package to Anaconda
shell: bash -el {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
if: ${{ (github.ref == 'ref/head/main') && (env.ANACONDA_API_TOKEN != '') && (steps.artifact-upload.outputs.artifact-id != '') }}
run: |
anaconda upload -m ${{ env.CONDA }}/envs/biobuild/conda-bld/*/*.tar.bz2
2 changes: 1 addition & 1 deletion recipes/r-dscrutils/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source:

build:
noarch: generic
number: 0
number: 1
rpaths:
- lib/R/lib/
- lib/
Expand Down

0 comments on commit 41ff1c6

Please sign in to comment.