Skip to content

Commit

Permalink
Add experimental publish section
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Oct 31, 2023
1 parent 48b2c0a commit aafcbb2
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions .github/workflows/conda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ jobs:
uses: actions/download-artifact@v3
with:
name: conda_package
path: conda/${{ inputs.package }}/out/
path: conda_dist/

- name: Prepare
run: |
python -VV
ls -l conda/${{ inputs.package }}/out/
conda install -y pypdfium2_${{ inputs.package }} -c bblanchon -c pypdfium2-team -c ./conda/${{ inputs.package }}/out/
ls -l conda_dist/
conda install -y pypdfium2_${{ inputs.package }} -c bblanchon -c pypdfium2-team -c ./conda_dist/
- name: Test raw package
if: inputs.package == 'raw'
Expand All @@ -115,5 +115,35 @@ jobs:
conda install -y pytest pillow numpy
./run test
# publish:
# TODO
publish:

if: ${{ inputs.publish }}
needs: [build, test]
runs-on: ubuntu-latest

steps:

- name: Miniconda setup
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.py }}
channels: bblanchon,pypdfium2-team
channel-priority: strict

- name: Install deps
run: conda install -y anaconda-client

- name: Download artifact
uses: actions/download-artifact@v3
with:
name: conda_package
path: conda_dist/

- name: Print package
run: file conda_dist/noarch/pypdfium2_${{ inputs.package }}-*.tar.bz2

# - name: Upload to Anaconda
# run: anaconda upload conda_dist/noarch/pypdfium2_${{ inputs.package }}-*.tar.bz2
# env:
# ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}

0 comments on commit aafcbb2

Please sign in to comment.