Fix C# sample build failures by upgrading to compatible .NET versions… #111
  
    
      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-demo-website | |
| on: | |
| push: | |
| branches: main # todo: set 'main' auto deploy once everything works | |
| paths: | |
| - 'samples/**' | |
| - 'website/**' | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| contents: write # Grant write permissions for this workflow only | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| publish: | |
| name: Deploy demo website | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| - name: Build demo website | |
| run: | | |
| cd website | |
| npm install | |
| npm run build | |
| env: | |
| trackingID: G-9DVQRCY9L7 | |
| gtmTrackingID: GTM-N67NT6N | |
| - name: Deploy to GitHub Pages | |
| if: success() | |
| uses: crazy-max/ghaction-github-pages@v4 | |
| with: | |
| target_branch: gh-pages | |
| build_dir: website/build | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |