|
52 | 52 | publish_dir: 'docs' |
53 | 53 | destination_dir: 'docs' |
54 | 54 | keep_files: true |
| 55 | + |
| 56 | + Anaconda: |
| 57 | + runs-on: ubuntu-22.04 |
| 58 | + |
| 59 | + steps: |
| 60 | + |
| 61 | + - name: Checkout Repository |
| 62 | + uses: actions/checkout@v2 |
| 63 | + |
| 64 | + - name: Setup Miniconda & Environment |
| 65 | + uses: conda-incubator/setup-miniconda@v2 |
| 66 | + with: |
| 67 | + python-version: 3.11 |
| 68 | + auto-update-conda: true |
| 69 | + auto-activate-base: true |
| 70 | + |
| 71 | + - name: Install conda build suite |
| 72 | + shell: bash -l {0} |
| 73 | + run: conda install conda-build conda-verify numpy |
| 74 | + |
| 75 | + - name: Conda Info |
| 76 | + shell: bash -l {0} |
| 77 | + run: | |
| 78 | + conda info -a |
| 79 | + conda list |
| 80 | +
|
| 81 | + - name: Render version into the build recipe |
| 82 | + shell: bash -l {0} |
| 83 | + run: | |
| 84 | + VERSION=$(<VERSION) |
| 85 | + VERSION="${VERSION:1}" |
| 86 | + sed -i "s/{{ version }}/$VERSION/" meta.yaml |
| 87 | +
|
| 88 | + - name: Build Anaconda Package |
| 89 | + shell: bash -l {0} |
| 90 | + run: conda build . -c conda-forge |
| 91 | + |
| 92 | + - name: Publish to Anaconda.org |
| 93 | + uses: m0nhawk/conda-package-publish-action@master |
| 94 | + with: |
| 95 | + subDir: '.' |
| 96 | + AnacondaUsername: AngryMaciek |
| 97 | + AnacondaPassword: ${{ secrets.ANACONDA_PASSWORD }} |
| 98 | + |
| 99 | + DockerHub: |
| 100 | + runs-on: ubuntu-22.04 |
| 101 | + |
| 102 | + steps: |
| 103 | + |
| 104 | + - name: Checkout Repository |
| 105 | + uses: actions/checkout@v3 |
| 106 | + |
| 107 | + - name: Build & Publish image to DockerHub |
| 108 | + env: |
| 109 | + docker_username: angrymaciek |
| 110 | + docker_password: ${{ secrets.DOCKER_PASSWORD }} |
| 111 | + run: | |
| 112 | + repo_name="hypercomplex" |
| 113 | + tag=${GITHUB_REF##*/} |
| 114 | + docker build -t angrymaciek/${repo_name}:latest . |
| 115 | + docker tag angrymaciek/${repo_name} angrymaciek/${repo_name}:${tag} |
| 116 | + echo $docker_password | docker login -u $docker_username --password-stdin |
| 117 | + docker push angrymaciek/${repo_name}:${tag} |
0 commit comments