Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshawkes committed Feb 21, 2024
2 parents e86496e + 7429d50 commit 066d291
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions .github/workflows/check-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:

workflow_dispatch: ~

release:
types: [created]

jobs:

quality:
Expand Down Expand Up @@ -57,21 +60,16 @@ jobs:
working-directory: docs

deploy:
needs: checks
if: ${{ github.event_name == 'release' }}
name: Upload to Pypi
needs: [checks]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Check version
run: |
release=${GITHUB_REF##*/}
version=$(python setup.py --version)
test "$release" == "$version"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -83,21 +81,3 @@ jobs:
run: |
python setup.py sdist bdist_wheel
twine upload dist/* --verbose
# publish:
# if: ${{ github.event_name == 'release' }}
# name: Publish on Readthedocs
# needs: deploy
# runs-on: ubuntu-latest
# steps:
# - name: Start polytope-docs build
# uses: actions/github-script@v4
# with:
# github-token: ${{ secrets.ECMWF_REPO_ACCESS }}
# script: |-
# await github.actions.createWorkflowDispatch({
# owner: 'ecmwf-projects',
# repo: 'polytope-docs',
# workflow_id: 'publish.yaml',
# ref: 'master'
# });

0 comments on commit 066d291

Please sign in to comment.