Skip to content

Commit

Permalink
ci: Working on automatic release to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr0p42 committed Feb 7, 2024
1 parent 272090f commit 3a1b584
Show file tree
Hide file tree
Showing 8 changed files with 435 additions and 105 deletions.
8 changes: 7 additions & 1 deletion .github/.releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
"@semantic-release/github",
[
"semantic-release-pypi",
{
"srcDir": "./python"
}
]
]
}
2 changes: 2 additions & 0 deletions .github/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npm-install:
docker run --rm -it -v `pwd`:/home/node/app -w /home/node/app node npm install
423 changes: 422 additions & 1 deletion .github/package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "naas-models",
"version": "0.0.1",
"devDependencies": {
"semantic-release": "^19.0.5"
"semantic-release": "^19.0.5",
"semantic-release-pypi": "^3.0.0"
}
}

51 changes: 0 additions & 51 deletions .github/workflows/docker-build-pre-release.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/docker-build-release.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ jobs:
env:
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} # Use this if you need to trigger CI/CD based on new release being published.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: npx semantic-release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
__pycache__
node_modules

0 comments on commit 3a1b584

Please sign in to comment.