Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: push releases to stable branch #16

Merged
merged 3 commits into from
Jun 15, 2021
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
41 changes: 41 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name-template: ComPWA Organization Documentation $NEXT_PATCH_VERSION
tag-template: $NEXT_PATCH_VERSION

references:
- main
- epic/*

categories:
- title: 💡 New features
label: 💡 Feature
- title: ⚠️ Interface
label: ⚠️ Interface
- title: 🐛 Bug fixes
label: Bug
- title: 🔨 Internal maintenance
label: 🔨 Maintenance
- title: 📝 Documentation
label: 📝 Docs
- title: 🖱️ Developer Experience
label: 🖱️ DX

change-template: |
<details>
<summary>$TITLE (#$NUMBER)</summary>

$BODY

</details>

replacers:
- search: /<summary>([a-z]+!?:\s*)(.*)</summary>/g
replace: <summary>$2</summary>

sort-direction: ascending

template: |
# Release $NEXT_PATCH_VERSION

See all documentation for this version [here](https://compwa-org.rtfd.io/en/$NEXT_PATCH_VERSION).

$CHANGES
22 changes: 22 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# cspell:ignore noreply prereleased

name: CD

on:
release:
types:
- prereleased
- released

jobs:
push:
name: Push to stable branch
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Push to stable branch
run: |
git config --global user.name "GitHub Action"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git push origin HEAD:refs/heads/stable -f
16 changes: 16 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Drafter

on:
push:
branches:
- main
- epic/*
workflow_dispatch:

jobs:
update_release_draft:
runs-on: ubuntu-20.04
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
break
if not notebook_title:
raise ValueError(f'Notebook "{filepath}" does not have a title')
link = f"https://mybinder.org/v2/gh/ComPWA/compwa-org/main?urlpath=apps%2Fdemo%2F{filename}"
link = f"https://mybinder.org/v2/gh/ComPWA/compwa-org/stable?urlpath=apps%2Fdemo%2F{filename}"
demo_template += f"{notebook_title} <{link}>\n"
demo_template += "```\n"

Expand Down