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 f1ac5f7
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 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
outputs:
matrix: ${{ steps.get-tags.outputs.result }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: get-tags
run: "git tag -l v*"
deploy:
name: Deploy
runs-on: ubuntu-latest
Expand All @@ -12,16 +23,16 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install dependencies
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
# - uses: actions/setup-node@v4
# with:
# node-version: "20.x"
# - name: Install dependencies
# 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

0 comments on commit f1ac5f7

Please sign in to comment.