From e5cc19877ca5ceddd73c53f39bc70ff84589ea2e Mon Sep 17 00:00:00 2001 From: Tilly Woodfield <22456167+tillywoodfield@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:59:34 +0300 Subject: [PATCH] ci: get all tags --- .github/workflows/deploy-storybook.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml index 7ca9882..7ec1465 100644 --- a/.github/workflows/deploy-storybook.yml +++ b/.github/workflows/deploy-storybook.yml @@ -4,6 +4,17 @@ name: Deploy Storybook on: [push] jobs: + get-tags: + name: Get Tags + runs-on: ubuntu-latest + steps: + - uses: octokit/request-action@v2.x + id: get_latest_release + with: + route: GET /repos/${{ github.repository }}/git/matching-refs/tags + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: "echo latest release: '${{ steps.get_latest_release.outputs.data }}'" deploy: name: Deploy runs-on: ubuntu-latest @@ -19,9 +30,9 @@ jobs: run: npm ci - name: Build storybook run: npm run build:storybook - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: storybook-static - - name: Deploy to GitHub Pages - uses: actions/deploy-pages@v4 + # - name: Upload artifact + # uses: actions/upload-pages-artifact@v3 + # with: + # path: storybook-static + # - name: Deploy to GitHub Pages + # uses: actions/deploy-pages@v4