File tree Expand file tree Collapse file tree 4 files changed +66
-7
lines changed Expand file tree Collapse file tree 4 files changed +66
-7
lines changed Original file line number Diff line number Diff line change 1+ name : Build & Publish Python Package
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+ - name : Set up Python
13+ uses : actions/setup-python@v4
14+ with :
15+ python-version : " 3.x"
16+ - name : Install dependencies
17+ run : |
18+ python -m pip install --upgrade pip
19+ pip install build
20+ - name : Build package
21+ run : python -m build
22+ - name : Publish package
23+ uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
24+ with :
25+ user : __token__
26+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1+ # Contributing to Superset API Client
2+
3+ ## Setting up your development environment
4+
5+ To be written
6+
7+ ## Releasing
8+
9+ > This releasing section is intended for releasers only.
10+ > You won't be able to release without permissions.
11+
12+ ### Before releasing
13+ To release you will need to install github CLI:
14+ 1 . Install github CLI following the instructions here: https://github.com/cli/cli#installation
15+ 2 . Authenticate with ` gh auth login ` and follow the instructions.
16+
17+ ### Creating a new release
18+ To create a new release:
19+ 1 . Go to master branch and merge develop branch
20+ 2 . Release using the release script ` bash ./scripts/release.sh `
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # This script will release a new version of the package
4+ VERSION=$1
5+
6+ # Confirming release
7+ echo " Releasing version $VERSION , Continue ?"
8+ select yn in " Yes" " No" ; do
9+ case $yn in
10+ Yes ) break ;;
11+ No ) exit ;;
12+ esac
13+ done
14+
15+ # Creating tag
16+ git tag $VERSION
17+ git push --tags
18+
19+ # Creating release from tag
20+ gh release create $VERSION --generate-notes
You can’t perform that action at this time.
0 commit comments