Skip to content

Commit

Permalink
fix(build): move PyPI release to semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
mostaphaRoudsari committed Oct 22, 2024
1 parent 96641ef commit 1cc4db0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 29 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/continuous-deployment.yaml

This file was deleted.

10 changes: 8 additions & 2 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,24 @@ jobs:
- name: Test with pytest
run: |
python -m pytest
deploy:
name: "Semantic Release"
needs: test
if: success() && github.ref == 'refs/heads/master' && github.base_ref == ''
if: success() && github.ref == 'refs/heads/master' && github.base_ref == '' && github.repository_owner == 'pollination'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: set up node
uses: actions/setup-node@v4
with:
node-version: 22.2.0
- name: install semantic-release
run:
npm install @semantic-release/exec
- run: npx semantic-release@^23.1.1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_USERNAME: ${{ secrets.POLLINATION_PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.POLLINATION_PYPI_PASSWORD }}
11 changes: 10 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
[
"@semantic-release/github",
{
"successComment": false,
"failTitle": false
}
],
["@semantic-release/exec", {
"publishCmd": "bash deploy.sh"
}]
]
}

0 comments on commit 1cc4db0

Please sign in to comment.