Skip to content

Commit

Permalink
Rework release flow
Browse files Browse the repository at this point in the history
Sync workflow is now responsible for syncing master and tags to the
subtree repos.

Release workflow is responsible for cutting a GitHub Release and
advancing the vN major-version branch head.

Release workflows within the subtree repos are responsible for cutting
their own GitHub Releases and advancing the vN major-version branch head
within their own repos.

Also ensure pushes are only sent to the same repo owner.
  • Loading branch information
jasonkarns committed Mar 27, 2020
1 parent 4d7f7d5 commit 53222bc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release
on:
push: # only semver tags, excluding prereleases
tags: 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
github:
runs-on: ubuntu-latest
steps:
- uses: jasonkarns/create-release@master

major-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- env:
tag: ${{github.ref}}
run: |
tag=${tag#refs/tags/}
major=${tag%%.*}
git push origin HEAD:refs/heads/$major

0 comments on commit 53222bc

Please sign in to comment.