-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into test_inherit_views_on_test_all_views
- Loading branch information
Showing
10 changed files
with
195 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[bumpversion] | ||
current_version = 1.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: DESTRAL_RELEASE | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+' | ||
- 'v[0-9]+\.[0-9]+\.[0-9]+' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 2.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '2.7' | ||
- name: Get tag | ||
id: tag | ||
uses: dawidd6/action-get-tag@v1 | ||
with: | ||
strip_v: false | ||
- name: Creating a realease/pre-release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{steps.tag.outputs.tag}} | ||
draft: false | ||
prerelease: ${{ contains(github.ref, '-rc') }} | ||
generate_release_notes: true | ||
- name: Publish a Python distribution to PyPI | ||
if: ${{ contains(github.ref, '-rc') }} == false | ||
uses: conchylicultor/pypi-build-publish@v1 | ||
with: | ||
pypi-token: ${{ secrets.PYPI_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: GISCE_DESTRAL_VERION | ||
on: | ||
push: | ||
branches: [ master ] | ||
jobs: | ||
bump: | ||
runs-on: ubuntu-latest | ||
if: ${{ !startsWith(github.event.head_commit.message, 'Bump to v') }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ssh-key: ${{ secrets.SSH_PRIVATE }} | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Setup git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "giscegit" | ||
- name: Install python packages | ||
run: | | ||
pip install bump2version | ||
pip install giscemultitools | ||
- name: Get PR info | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_GIT_TOKEN }} | ||
WORKSPACE: ${{github.workspace}} | ||
run: | | ||
echo 'PR_INFO<<EOF' >> $GITHUB_ENV | ||
gisce_github get-commits-sha-from-merge-commit --owner gisce --repository destral --sha $GITHUB_SHA >> $GITHUB_ENV | ||
echo 'EOF' >> $GITHUB_ENV | ||
- name: Retrive info | ||
run: | | ||
eval `ssh-agent -s` | ||
ssh-add - <<< '${{ secrets.SSH_PRIVATE }}' | ||
pr_labels=$( echo '${{ env.PR_INFO }}' | jq -r '.pullRequest.labels' ) | ||
is_minor=false | ||
is_major=false | ||
is_patch=false | ||
for label in echo $( echo $pr_labels | jq -r '.[].name' ); do | ||
if [[ $label == 'minor' ]]; then | ||
is_minor=true | ||
elif [[ $label == 'major' ]]; then | ||
is_major=true | ||
elif [[ $label == 'patch' ]]; then | ||
is_patch=true | ||
fi | ||
done | ||
VERSION_TYPE=false | ||
if [[ $is_major == true ]]; then | ||
VERSION_TYPE="major" | ||
elif [[ $is_minor == true ]]; then | ||
VERSION_TYPE="minor" | ||
elif [[ $is_patch == true ]]; then | ||
VERSION_TYPE="patch" | ||
fi | ||
if [[ $VERSION_TYPE != false ]]; then | ||
bump2version $VERSION_TYPE --tag --commit -m "Bump to v{new_version}" setup.py | ||
git push origin master --tags | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.