Merge pull request #513 from aziontech/dependabot/npm_and_yarn/axios-… #14
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 Icons Gallery | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'apps/icons-gallery/**' | |
| - 'packages/icons/**' | |
| 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 workspace @aziontech/icons | |
| run: | | |
| npm run icons:build | |
| - name: Azion Build | |
| run: | | |
| npm run icons:gallery:build:azion | |
| - name: Azion Deploy | |
| run: | | |
| npm run icons:gallery:publish |