Update python script #11
  
    
      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 TypeScript website to GitHub Pages | |
| on: | |
| push: | |
| workflow_dispatch: | |
| workflow_call: | |
| permissions: | |
| id-token: write | |
| pages: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Download repository | |
| uses: actions/checkout@v4 | |
| - name: Build TypeScript | |
| run: tsc | |
| - name: Run custom build script script | |
| run: python3 build.py | |
| - name: Compress & Upload pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: "./www" # Website root | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |