ci: get all tags #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Storybook | |
# TODO: Run only for main branch | |
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 | |
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 |