Skip to content

Commit

Permalink
Merge pull request #157 from mrc-ide/release-on-merge
Browse files Browse the repository at this point in the history
Make release on merge
  • Loading branch information
OJWatson authored Nov 26, 2020
2 parents cf630fa + 4664194 commit 8cd4310
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/make-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
branches:
- master

name: make-release

jobs:
create-release:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Extract version
run: |
echo "PACKAGE_VERSION=$(grep '^Version' DESCRIPTION | sed 's/.*: *//')" >> $GITHUB_ENV
echo "PACKAGE_NAME=$(grep '^Package' DESCRIPTION | sed 's/.*: *//')" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.PACKAGE_VERSION }}
release_name: Release ${{ env.PACKAGE_NAME }} ${{ env.PACKAGE_VERSION }}
draft: false
prerelease: false
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: squire
Type: Package
Title: SEIR transmission model of COVID-19
Version: 0.5.6
Version: 0.5.7
Authors@R: c(
person("OJ", "Watson", email = "o.watson15@imperial.ac.uk", role = c("aut", "cre")),
person("Patrick", "Walker", email = "patrick.walker06@imperial.ac.uk", role = c("aut")),
Expand Down

0 comments on commit 8cd4310

Please sign in to comment.