Skip to content

add link button

add link button #87

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
publish-npm-package:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.12
cache: pip
- uses: actions/setup-node@v4
with:
cache: npm
- run: pip install -r requirements.txt
- run: npm ci
- run: npm run build
- run: python scripts/publish_npm_package.py ${{ secrets.GITHUB_TOKEN }} ${{ secrets.ANSIBLE_VAULT_KEY }}
build-storybook:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.12
cache: pip
- uses: actions/setup-node@v4
with:
cache: npm
- run: npm ci
- run: pip install -r requirements.txt
- run: npm run build:storybook
- id: pack-test-pages
run: python scripts/pack_pages.py
- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: ${{ steps.pack-test-pages.outputs.artifact }}
retention-days: 30
deploy-storybook:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build-storybook
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4