Skip to content

Commit

Permalink
[DEI-125]: test mike deploy on GA
Browse files Browse the repository at this point in the history
  • Loading branch information
CindyvdVries committed Oct 6, 2023
1 parent b7c57f7 commit 3c5e0e5
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
name: Release major or minor version (create tag and bump poetry version)

on:
workflow_dispatch:
inputs:
release_type:
type: choice
description: Choose type of release
default: major
options:
- minor
- major
push
# workflow_dispatch:
# inputs:
# release_type:
# type: choice
# description: Choose type of release
# default: major
# options:
# - minor
# - major

jobs:
create-release:
Expand All @@ -27,23 +28,21 @@ jobs:
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.4.2
- name: Pushing to the protected branch 'protected'
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }}
branch: protected
- name: bump up patch version
run: |
git config user.name github-actions
git config user.email github-actions@github.com
poetry version ${{ github.event.inputs.release_type }}
PROJECT_VERSION=$(poetry version --short)
echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV
sed -i "1 s/.*/version: $PROJECT_VERSION/" template_input.yaml
git add template_input.yaml
git add pyproject.toml
git commit -m "bump up ${{ github.event.inputs.release_type }} version from release workflow: version $PROJECT_VERSION"
git push
# - name: uncomment after test
# run: |
# sed -i "1 s/.*/version: $PROJECT_VERSION/" template_input.yaml
# git add template_input.yaml
# git add pyproject.toml
# git commit -m "bump up ${{ github.event.inputs.release_type }} version from release workflow: version $PROJECT_VERSION"
# git push
- name: Create Release
uses: actions/create-release@latest
env:
Expand Down

0 comments on commit 3c5e0e5

Please sign in to comment.