Skip to content

Commit

Permalink
Creating releasing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
opus-42 committed Sep 25, 2022
1 parent 0b3e408 commit ccfea2a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 7 deletions.
20 changes: 20 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Contributing to Superset API Client

## Setting up your development environment

To be written

## Releasing

> This releasing section is intended for releasers only.
> You won't be able to release without permissions.
### Before releasing
To release you will need to install github CLI:
1. Install github CLI following the instructions here: https://github.com/cli/cli#installation
2. Authenticate with `gh auth login` and follow the instructions.

### Creating a new release
To create a new release:
1. Go to master branch and merge develop branch
2. Release using the release script `bash ./scripts/release.sh`
7 changes: 0 additions & 7 deletions scripts/build.sh

This file was deleted.

20 changes: 20 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# This script will release a new version of the package
VERSION=$1

# Confirming release
echo "Releasing version $VERSION, Continue ?"
select yn in "Yes" "No"; do
case $yn in
Yes ) break;;
No ) exit;;
esac
done

# Creating tag
git tag $VERSION
git push --tags

# Creating release from tag
gh release create $VERSION --generate-notes

0 comments on commit ccfea2a

Please sign in to comment.