wip #10
Workflow file for this run
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: GitHub Pages | |
| on: | |
| push: | |
| branches: [ "outlook" ] | |
| workflow_dispatch: | |
| inputs: | |
| VITE_IO_BRIDGE_URL: | |
| description: 'Optional bridge URL override for this run (e.g. https://bridge.example.com)' | |
| required: false | |
| type: string | |
| #concurrency: | |
| # group: pages | |
| # cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout bridge-examples | |
| uses: actions/checkout@v6 | |
| with: | |
| path: bridge-examples | |
| - name: Checkout connect-js | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: InteropIO/connect-js | |
| ref: feature/upgrade-gateway | |
| token: '${{ secrets.PAT }}' | |
| path: connect-js | |
| - name: Use Node 20 for connect-js build | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: connect-js/package-lock.json | |
| - name: Build connect-js | |
| working-directory: connect-js/ | |
| env: | |
| LICENSE_KEY: ${{ secrets.IO_CB_LICENSE_KEY }} | |
| run: | | |
| npm ci | |
| npm run build | |
| - name: Use project Node version for office build | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: bridge-examples/.node-version | |
| cache: npm | |
| cache-dependency-path: bridge-examples/office/package-lock.json | |
| - name: Install dependencies | |
| working-directory: bridge-examples/office | |
| run: npm ci | |
| - name: Build | |
| working-directory: bridge-examples/office | |
| run: npm run build | |
| env: | |
| VITE_IO_BRIDGE_URL: ${{ github.event.inputs.VITE_IO_BRIDGE_URL || vars.VITE_IO_BRIDGE_URL }} | |
| VITE_AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }} | |
| VITE_AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }} | |
| VITE_AUTH0_AUDIENCE: ${{ secrets.AUTH0_AUDIENCE }} | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: bridge-examples/office/dist | |
| deploy: | |
| needs: build | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |