Deploy GitHub Page #29
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 GitHub Page | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| confirm_deployment: | |
| description: "Please confirm deployment" | |
| required: true | |
| type: boolean | |
| concurrency: deploy-gh-pages-${{ github.ref }} | |
| jobs: | |
| deploy-gh-pages: | |
| if: ${{ inputs.confirm_deployment == true && github.repository == 'siemens/ix-starter' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - uses: ./.github/workflows/actions/install | |
| - name: Install optional theme | |
| run: pnpm --filter ix-theme-downloader download | |
| env: | |
| CSC_TOKEN: ${{ secrets.CSC_TOKEN }} | |
| BRAND_URL: ${{ vars.BRAND_URL }} | |
| - name: Build React Starter | |
| run: pnpm build | |
| env: | |
| REACT_BASE: /ix-starter/react-starter/ | |
| VITE_THEME: 1 | |
| - name: Deploy GitHub Pages 🚀 | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: ./apps/react-starter/dist | |
| target-folder: react-starter |