Skip to content

Commit

Permalink
ci: get all tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed Jun 4, 2024
1 parent d852224 commit e5cc198
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ name: Deploy Storybook
on: [push]

jobs:
get-tags:
name: Get Tags
runs-on: ubuntu-latest
steps:
- uses: octokit/[email protected]
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
Expand All @@ -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

0 comments on commit e5cc198

Please sign in to comment.