Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/release-master-as.alpha.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release master as alpha
Comment thread
Dominik-Sauer marked this conversation as resolved.

on:
workflow_dispatch:
inputs:
alpha-release:
description: 'Aplha release, such as 1.0.1a2'
required: true

jobs:
release-master-as-alpha:
name: Release master as alpha
runs-on: ubuntu-latest
strategy:
matrix:
component:
- gooddata-afm-client
- gooddata-metadata-client
- gooddata-scan-client
- gooddata-pandas
- gooddata-fdw
- gooddata-sdk
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install pip & tbump
run: python -m pip install --upgrade pip tbump
- name: Bump to alpha
run: tbump --only-patch --non-interactive ${{ github.event.inputs.alpha-release }}
- name: Install dependencies
run: pip install build
- name: Build ${{ matrix.component }}
run: |
cd ${{ matrix.component }}
python -m build
- name: Push ${{ matrix.component}} to pypi
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ${{ matrix.component }}/dist
verbose: true
4 changes: 4 additions & 0 deletions MAINTENANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
* Checkout latest master tag it vX.Y.Z
* Push the tag to the gooddata/gooddata-python-sdk repository (e.g. `git push <remote> vX.Y.Z`)

### Releasing Alpha versions
To publish current master as an alpha version, use `Release master as alpha` github workflow where you need to specify
desired alpha version. **No validity checks are performed**.

### Errors that may appear

* Github release could not be created as the same release already exists.
Expand Down