Skip to content

Commit

Permalink
release-tag workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Sep 18, 2022
1 parent ebe9222 commit c76bf6a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: release-tag
on:
push:
tags:
- "**"

jobs:
create-release:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/github-script
- uses: actions/github-script@v6
with:
# https://octokit.github.io/rest.js/v18#repos-create-release
script: |
github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: github.ref_name,
prerelease: !github.ref_name.match(/\d+\.\d+\.\d+$/)
body: 'Please see the [changelog](https://zero-to-jupyterhub.readthedocs.io/en/latest/changelog.html) for details.'
});

0 comments on commit c76bf6a

Please sign in to comment.