-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/greenbone/python-gvm into y…
…0urself/from-string-at-enum
- Loading branch information
Showing
10 changed files
with
198 additions
and
90 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Release Python package with pontos | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Branch' | ||
required: true | ||
default: 'main' | ||
|
||
jobs: | ||
build-and-release: | ||
env: | ||
GITHUB_USER: ${{ secrets.GREENBONE_BOT }} | ||
GITHUB_MAIL: ${{ secrets.GREENBONE_BOT_MAIL }} | ||
GITHUB_TOKEN: ${{ secrets.GREENBONE_BOT_TOKEN }} | ||
GPG_KEY: ${{ secrets.GPG_KEY }} | ||
GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
name: Build and release with pontos | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# because we want the git log for conventional commits, we need to fetch deeper! | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
branch: ${{ github.event.inputs.branch }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install poetry and dependencies | ||
uses: greenbone/actions/poetry@v1 | ||
- name: Tell git who I am | ||
run: | | ||
git config --global user.name "${{ env.GITHUB_USER }}" | ||
git config --global user.email "${{ env.GITHUB_MAIL }}" | ||
git remote set-url origin \ | ||
https://${{ env.GITHUB_TOKEN }}@github.com/${{ github.repository }} | ||
- name: Prepare release with pontos | ||
run: | | ||
poetry run pontos-release prepare --calendar -CC | ||
echo "VERSION=$(poetry run pontos-version show)" >> $GITHUB_ENV | ||
- name: Release with pontos | ||
run: | | ||
poetry run pontos-release release -CC | ||
- name: Import key from secrets | ||
run: | | ||
echo -e "${{ env.GPG_KEY }}" >> tmp.file | ||
gpg \ | ||
--pinentry-mode loopback \ | ||
--passphrase ${{ env.GPG_PASSPHRASE }} \ | ||
--import tmp.file | ||
rm tmp.file | ||
- name: Sign with pontos-release sign | ||
run: | | ||
echo "Signing assets for ${{env.VERSION}}" | ||
poetry run pontos-release sign \ | ||
--signing-key ${{ env.GPG_FINGERPRINT }} \ | ||
--passphrase ${{ env.GPG_PASSPHRASE }} \ | ||
--release-version ${{ env.VERSION }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ if it has been lost. | |
```sh | ||
git remote add upstream [email protected]:greenbone/python-gvm.git | ||
git fetch upstream | ||
git rebase update/master | ||
git rebase update/main | ||
``` | ||
|
||
* Get the current version number | ||
|
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.