From ad64c192ab9267b44c8bbfab69dd20e921f05e2f Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Wed, 6 Dec 2023 14:24:09 +0800 Subject: [PATCH] Ako/ add tag_name to public directory to be visible on server (#6150) * ci: add tag_name to public directory to be visible on server * ci: use github sha on staging workflow * ci: echo version to file --- .github/workflows/production.yml | 3 ++- .github/workflows/staging.yml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index abac3c78820..b5491ab0ab9 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -50,7 +50,8 @@ jobs: - run: npm run format - run: npm run test - run: npm run build - + - run: echo $GIT_TAG_NAME > public/version.txt + - name: Remove Storybook uses: JesseTG/rm@v1.0.2 with: diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 6df6ee9734f..408d8dadde3 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -52,6 +52,8 @@ jobs: # - run: npm run test - run: npm run build # - run: npm run build:storybook + - run: echo $GITHUB_SHA > public/version.txt + - uses: olegtarasov/get-tag@v2.1 id: tagName # For using same tag for staging and production we need to uncomment these two below lines: