Skip to content

Commit 7bd20b2

Browse files
committed
ci: consolidate release into a single one-button workflow
The release required three manual, ordered steps: dispatch bump-version, dispatch netlify-deploy, then hand-push the tag. Consolidate so a single dispatch of the release workflow runs everything end-to-end. bump-version.yaml now pushes the vX.Y.Z tag at the end of the bump job, right after pushing master (so the tag points at the release commit). Because the push uses the TOKEN_GITHUB_YENKINS_ADMIN PAT, it propagates workflow events and fans out in parallel to: - build-release.yaml -> build, PyPI publish, GitHub release, Slack - netlify-deploy.yaml -> Hugo build, Netlify --prod netlify-deploy.yaml gains a 'push: tags: v*.*.*' trigger (keeping workflow_dispatch, so it stays independently runnable).
1 parent 88138a3 commit 7bd20b2

2 files changed

Lines changed: 6 additions & 17 deletions

File tree

.github/workflows/bump-version.yaml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# (C) 2023 GoodData Corporation
2-
name: Bump version & trigger release
2+
name: Release (bump version, publish packages & docs)
33

44
on:
55
workflow_dispatch:
@@ -71,19 +71,5 @@ jobs:
7171
git checkout master
7272
git merge ${{ steps.branch.outputs.release_branch }}
7373
git push origin master
74-
75-
# TODO: this part waits for docs build and publish optimization it takes too long (~15 minutes)
76-
# trigger-release:
77-
# needs:
78-
# - bump-version
79-
# - create-release-branch
80-
# runs-on: ubuntu-latest
81-
# steps:
82-
# - name: Checkout
83-
# uses: actions/checkout@v5
84-
# - name: Push new tag – v${{ needs.bump-version.outputs.new_version }}
85-
# run: |
86-
# git config user.name GitHub Actions
87-
# git config user.email github-actions@github.com
88-
# git tag v${{ needs.bump-version.outputs.new_version }}
89-
# git push origin v${{ needs.bump-version.outputs.new_version }}
74+
git tag v${{ steps.bump.outputs.new_version }}
75+
git push origin v${{ steps.bump.outputs.new_version }}

.github/workflows/netlify-deploy.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Netlify Deploy
22
on:
33
workflow_dispatch:
4+
push:
5+
tags:
6+
- v*.*.*
47

58
jobs:
69
netlify-deploy:

0 commit comments

Comments
 (0)