From 90f970711aa1b19575dd9522d2340c5bca6df803 Mon Sep 17 00:00:00 2001 From: Scott Brenner Date: Sat, 17 Apr 2021 11:21:31 -0700 Subject: [PATCH] feat(ci): Create workflows/release.yml (#36) --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ package.json | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 package.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7f17230 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +name: Create Release + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Changelog + uses: scottbrenner/generate-changelog-action@master + id: Changelog + - name: Create Release + id: create_release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + ${{ steps.Changelog.outputs.changelog }} + draft: false + prerelease: false diff --git a/package.json b/package.json new file mode 100644 index 0000000..f3ee419 --- /dev/null +++ b/package.json @@ -0,0 +1,2 @@ +{ +}