Skip to content

Commit

Permalink
ci: GH action to mark a release
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch committed Jul 7, 2020
1 parent bed806f commit f334005
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/mkrelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:
tags:
- v0.0* #Caveat: if you tag a personal branch with this format, it _will_ be marked for release.

name: Create Release

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get current date; set as env variable
run: echo "::set-env name=NOW::$(date +'%Y-%m-%d')"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Weekly release for ${{env.NOW}}
draft: false
prerelease: false

0 comments on commit f334005

Please sign in to comment.