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 2c26427
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,38 @@ name: Deploy Storybook
on: [push]

jobs:
get-tags:
name: Get Tags
runs-on: ubuntu-latest
outputs:
tags: ${{ steps.get_latest_release.outputs.data }}
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 }}
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: get-tags
permissions:
pages: write
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
- run: echo ${{ needs.get-tags.outputs.tags }}
# - 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

0 comments on commit 2c26427

Please sign in to comment.