From 11421f29d6cf89142956e713318869b00a3873d2 Mon Sep 17 00:00:00 2001 From: Romeo Date: Fri, 28 Feb 2020 17:22:38 +0100 Subject: [PATCH] Release on tag --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..14112fde --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Create Release +on: + push: + tags: + # Push events to matching v*, i.e. v1.0, v20.15.10 + - 'v*' + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@master + - name: Install deps + uses: bahmutov/npm-install@v1 + - name: Build + run: yarn build + - name: Create Release + id: create_release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false