Skip to content

Commit

Permalink
force anaconda
Browse files Browse the repository at this point in the history
  • Loading branch information
fzimmermann89 committed Apr 19, 2021
1 parent a4c0490 commit 3689991
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ jobs:
- run: ls -R dist
- run: rm -f dist/*.whl

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
#- uses: pypa/gh-action-pypi-publish@release/v1
#with:
#user: __token__
#password: ${{ secrets.TEST_PYPI_TOKEN }}
#repository_url: https://test.pypi.org/legacy/
#password: ${{ secrets.PYPI_TOKEN }}


build_conda:
Expand All @@ -95,7 +97,9 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, macOS-10.15]

defaults:
run:
shell: bash -l {0}
needs: [build_wheels]
if: startsWith(github.ref, 'refs/tags/')
steps:
Expand All @@ -109,23 +113,28 @@ jobs:

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.7'

- name: Setup conda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: "build"
- shell: bash -l {0}
run: conda install anaconda-client conda-build -y
python-version: '3.7'

- run: conda install anaconda-client conda-build -y

- run: ls -R dist

- name: Build packages
shell: bash -l {0}
run: |
conda install anaconda-client conda-build -y
python .github/conda/wheel2conda.py dist/artifact
- run: ls -R dist

- name: Upload
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: anaconda upload dist/artifact/output/*.tar.bz2
run: anaconda upload dist/artifact/output/*.tar.bz2 --force

12 changes: 8 additions & 4 deletions .github/workflows/singularity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,19 @@ jobs:
- run: |
sudo apt install -y build-essential libssl-dev uuid-dev libgpgme11-dev squashfs-tools libseccomp-dev pkg-config
sudo chmod u+x .travis/*.sh && /bin/bash .travis/setupsingularity.sh
- run: df -h .
- name: Free disk space
run: sudo rm -rf /usr/share/dotnet /usr/share/swift /opt/ghc/ /opt/hostedtoolcache/Ruby /opt/hostedtoolcache/node /opt/hostedtoolcache/CodeQL /usr/local/lib/android
- run: df -h .

- name: build image
run: sudo singularity build /tmp/idi Singularity.py38
run: sudo singularity build image.sif Singularity.py38

- name: upload image
if: startsWith(github.ref, 'refs/tags/')
run: |
{{ secrets.SYLABS_TOKEN }} > sylabs-token
echo ${{ secrets.SYLABS_TOKEN }} > sylabs-token
singularity remote login --tokenfile sylabs-token
singularity push -U /tmp/idi library://fzimmermann89/idi/idi
singularity push -U image.sif library://fzimmermann89/idi/idi

0 comments on commit 3689991

Please sign in to comment.