From f3bdf8e7314af2468ab12787b692479def46aec3 Mon Sep 17 00:00:00 2001 From: Fernando Maclen Date: Thu, 19 Oct 2023 10:38:24 -0400 Subject: [PATCH] uncomment semantic-release and deploy on `main` --- .github/workflows/deploy.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5dc56c0..8f73f59 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,7 +3,7 @@ name: Release app & deploy Web-UI on: push: branches: - - deploy-to-cloudflare + - main jobs: build_and_deploy: @@ -17,13 +17,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - # - name: Semantic Release - # id: release - # run: | - # version=$(npx semantic-release --branches main | grep 'Published release' | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') - # echo "version=$version" >> "$GITHUB_OUTPUT" - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Semantic Release + id: release + run: | + version=$(npx semantic-release --branches main | grep 'Published release' | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') + echo "version=$version" >> "$GITHUB_OUTPUT" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Don't need to deploy the `web.py` script to CloudFlare Pages. # Instead of adding a CloudFlare wrangler config file to ignore it