-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dep: adding `release-it` dependency for automated releases * ci: start to configure release-it * ci: enhance github configuration * ci: try to avoid recursive ci calls with release commits * ci,git: working more on automatic relases in the commit messages * ci: work on triggers for the release ci * doc: document releases in the contributing md * ci: first dry-run ci * ci, refactor: shorten `QA` ci name * ci: gaurd against names for the `step` variable * ci, refactor: further improve if-triggers of release ci
- Loading branch information
1 parent
ce3d007
commit 4e8a2d9
Showing
7 changed files
with
3,390 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: check for broken links | ||
name: Check for Broken Links | ||
|
||
'on': | ||
push: | ||
|
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,37 @@ | ||
name: "Release" | ||
|
||
'on': | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
# only currently so I can test in the ci | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.event.head_commit.message, '[release:minor]') | | ||
startsWith(github.event.head_commit.message, '[release:major]') | | ||
startsWith(github.event.head_commit.message, '[release:patch]') | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: git config | ||
run: | | ||
git config user.name "${GITHUB_ACTOR}" | ||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
- run: npm ci | ||
- run: | | ||
msg="${{ github.event.head_commit.message }}" | ||
step=$(echo "$msg" | sed -n 's/\[release:\(patch|minor|major\)].*/\1/p') | ||
npm run release -- $step | ||
deploy-docker: | ||
needs: [ release ] | ||
name: "Deploy Docker (only on main)" | ||
if: startsWith(github.event.head_commit.message, '[release:minor]') | | ||
startsWith(github.event.head_commit.message, '[release:major]') | | ||
startsWith(github.event.head_commit.message, '[release:patch]') | ||
uses: Code-Inspect/flowr/.github/workflows/deploy-docker.yaml@main | ||
secrets: inherit |
Oops, something went wrong.