Release #222
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: CI/CD Release | |
run-name: Release | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
id-token: write | |
jobs: | |
package-release: | |
name: Publish Package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.REPOSITORY_ACCESS_TOKEN }} | |
- name: Build 🏗️ | |
uses: sliit-foss/actions/bun/[email protected] | |
- name: Release 🚀 | |
uses: sliit-foss/actions/bun/[email protected] | |
with: | |
latest: true | |
scrub_dependencies: true | |
env: | |
TAG: latest | |
NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} | |
site-release: | |
name: Deploy Docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository 🛎️ | |
uses: actions/checkout@v4 | |
- name: Cleanups 🧹 | |
run: | | |
cat package.json | |
echo $(sed '/if (storybook) {/,/}/d' src/store/index.ts) > src/store/index.ts | |
echo $(sed '/@dreamworld\/addon-redux/d' .storybook/main.ts) > .storybook/main.ts | |
- name: Setup 🚀 | |
uses: sliit-foss/actions/bun/[email protected] | |
- name: Build 🏗️ | |
run: bun build-storybook | |
- name: Create .nojekyll file 🚧 | |
run: touch ./storybook-static/.nojekyll | |
- name: Fix 404 on page reload 🚧 | |
run: cp storybook-static/index.html storybook-static/404.html | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: ./storybook-static | |
branch: main | |
repository-name: mezh-hq/mezh-hq.github.io | |
token: ${{ secrets.REPOSITORY_ACCESS_TOKEN }} |