From 516affec6f5798cfdd144de44408053cc47d2061 Mon Sep 17 00:00:00 2001 From: akash1810 Date: Tue, 12 Dec 2023 23:27:56 +0000 Subject: [PATCH] cd(cli): Release the CLI upon new tag --- .github/workflows/release-cli.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release-cli.yml diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml new file mode 100644 index 0000000..c81565a --- /dev/null +++ b/.github/workflows/release-cli.yml @@ -0,0 +1,29 @@ +name: Release CLI + +on: + push: + tags: + - cli-v* + +jobs: + release: + runs-on: ubuntu-latest + + permissions: + contents: write + packages: write + + steps: + - uses: actions/checkout@v4 + - uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + - name: lint + compile + working-directory: cli + run: | + deno fmt --check + deno task compile + - run: sha256sum cli/dist/devx-logs > cli/dist/checksum.txt + - run: gh release create ${{ github.ref }} cli/dist --generate-notes + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}