Height issue fix #release #312
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: Release PowerPoint Add-in | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| trigger: | |
| description: "Manual trigger for PowerPoint release" | |
| required: false | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| env: | |
| PROJECT: demotime-powerpoint | |
| OUTPUT_DIR: apps/powerpoint-addin/dist | |
| APP_PATH: apps/powerpoint-addin | |
| jobs: | |
| release-powerpoint-addin: | |
| if: github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '#powerpoint') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| deployments: write | |
| defaults: | |
| run: | |
| working-directory: apps/powerpoint-addin | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Install dependencies | |
| run: npm i | |
| - name: Build PowerPoint Add-in | |
| run: npm run build | |
| working-directory: ${{ env.APP_PATH }} | |
| - name: Upload PowerPoint Add-in artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: powerpoint-addin | |
| path: ${{ env.OUTPUT_DIR }} | |
| - name: Publish to Cloudflare Pages | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN_PUBLISH }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID_PUBLISH }} | |
| command: pages deploy ${{ env.OUTPUT_DIR }} --project-name=${{ env.PROJECT }} --branch=main | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} |