Merge pull request #517 from aziontech/storybook-trigger #55
This file contains hidden or 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 Application Storybook | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'apps/storybook/**' | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GIT_PKG }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'lts/*' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Install workspace dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Azion CLI | |
| run: | | |
| curl -o azionlinux https://downloads.azion.com/linux/x86_64/azion | |
| sudo mv azionlinux /usr/bin/azion | |
| sudo chmod u+x /usr/bin/azion | |
| - name: CLI version | |
| run: azion --version | |
| - name: Configure token | |
| run: | | |
| azion -t ${{ secrets.AZION_PERSONAL_TOKEN }} | |
| azion whoami | |
| - name: Building Storybook | |
| working-directory: apps/storybook | |
| run: | | |
| pnpm --filter @aziontech/icons build | |
| pnpm --filter @aziontech/webkit build:dts | |
| pnpm build | |
| - name: Azion Build | |
| working-directory: apps/storybook | |
| run: | | |
| azion build --debug | |
| - name: Azion Deploy | |
| working-directory: apps/storybook | |
| run: | | |
| azion deploy --local --debug |