cetirizine

An experimental matrix client written in reactjs utilizing tailwind and storybook
git clone git://archive.git.mtrnord.blog/MTRNord/cetirizine.git
Log | Files | Refs | README | LICENSE

deploy.yaml (1257B)


      1 name: Build and Publish to GitHub Pages
      2 
      3 on:
      4   workflow_dispatch:
      5   push:
      6     branches:
      7       - "main"
      8 jobs:
      9   deploy-storybook:
     10     permissions:
     11       packages: read
     12       contents: write
     13     runs-on: ubuntu-latest
     14     steps:
     15       - name: Checkout 🛎️
     16         uses: actions/checkout@v4
     17         with:
     18           persist-credentials: false
     19       - uses: actions/setup-node@v3
     20         with:
     21           node-version: '18'
     22           registry-url: https://npm.pkg.github.com/
     23       - name: Install and Build 🔧
     24         run: | # Install npm packages and build the Storybook files
     25           export NODE_OPTIONS="--max_old_space_size=4096"
     26           npm install
     27           npx browserslist@latest --update-db
     28           npm run build -- --base /cetirizine/
     29           npm run build-storybook -- --disable-telemetry -o dist/storybook
     30           
     31           cp dist/index.html dist/404.html
     32         env:
     33           # also other environment variable
     34           NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
     35       - name: Deploy 🚀
     36         uses: JamesIves/github-pages-deploy-action@v4.4.3
     37         with:
     38           folder: dist # The folder that the build-storybook script generates files.
     39           clean: true # Automatically remove deleted files from the deploy branch