Skip to content

Commit

Permalink
remove conda from other workflows
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Jan 26, 2024
1 parent 4d19d66 commit 37b8783
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: gh-pages

- name: Create conda environment
run: conda create --quiet -c conda-forge --name oraspy
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install Oras and Dependencies
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
root=$PWD
source activate oraspy
cd /tmp
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,20 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3

- name: Install
run: conda create --quiet --name oras twine
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install dependencies
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate oras
pip install -e .
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate oras
python setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit 37b8783

Please sign in to comment.