From 9cafee4e51fde8c662fa7eab7d53ff65cdec09fc Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Fri, 25 Feb 2022 17:37:44 +0000 Subject: [PATCH] feat: release workflow --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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 000000000..f5ee07a49 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Release + +on: + push: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + deno: ["v1.x"] + steps: + - uses: actions/checkout@v2 + - uses: denoland/setup-deno@main + with: + deno-version: ${{ matrix.deno }} + - name: Get tag version + id: get_tag_version + run: echo ::set-output name=TAG_VERSION::${cat util/constants.ts | grep 'export const DISCORDENO_VERSION' | awk -F'= ' '{print $2}' | tr -d '"|;'} + - name: Create tag + run: git tag ${{steps.get_tag_version.outputs.TAG_VERSION}} && git push --tags