first commit
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Types tests / Test (lts/*) (push) Has been cancelled
				
			
		
			
				
	
				Lint / Lint (lts/*) (push) Has been cancelled
				
			
		
			
				
	
				CodeQL / Analyze (javascript) (push) Has been cancelled
				
			
		
			
				
	
				CI / Test (20) (push) Has been cancelled
				
			
		
			
				
	
				CI / Test (22) (push) Has been cancelled
				
			
		
			
				
	
				CI / Test (24) (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Types tests / Test (lts/*) (push) Has been cancelled
				
			Lint / Lint (lts/*) (push) Has been cancelled
				
			CodeQL / Analyze (javascript) (push) Has been cancelled
				
			CI / Test (20) (push) Has been cancelled
				
			CI / Test (22) (push) Has been cancelled
				
			CI / Test (24) (push) Has been cancelled
				
			This commit is contained in:
		
							
								
								
									
										69
									
								
								.github/workflows/publish_website.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								.github/workflows/publish_website.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,69 @@
 | 
			
		||||
name: Publish website
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - master
 | 
			
		||||
permissions:
 | 
			
		||||
  contents: read
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    name: Build
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    strategy:
 | 
			
		||||
      matrix:
 | 
			
		||||
        node-version: [lts/*]
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout repository
 | 
			
		||||
        uses: actions/checkout@v5
 | 
			
		||||
        with:
 | 
			
		||||
          fetch-depth: 0
 | 
			
		||||
 | 
			
		||||
      - name: Use Node.js ${{ matrix.node-version }}
 | 
			
		||||
        uses: actions/setup-node@v5
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: ${{ matrix.node-version }}
 | 
			
		||||
 | 
			
		||||
      - name: Install dependencies
 | 
			
		||||
        run: npm ci
 | 
			
		||||
 | 
			
		||||
      - name: Build the website
 | 
			
		||||
        run: npx gulp web
 | 
			
		||||
 | 
			
		||||
      - name: Archive the website
 | 
			
		||||
        shell: sh
 | 
			
		||||
        run: |
 | 
			
		||||
          chmod -c -R +rX "$INPUT_PATH" | while read line; do
 | 
			
		||||
            echo "::warning title=Invalid file permissions automatically fixed::$line"
 | 
			
		||||
          done
 | 
			
		||||
          tar \
 | 
			
		||||
            --dereference --hard-dereference \
 | 
			
		||||
            --directory "$INPUT_PATH" \
 | 
			
		||||
            -cvf "$RUNNER_TEMP/website.tar" \
 | 
			
		||||
            --exclude=.git \
 | 
			
		||||
            --exclude=.github \
 | 
			
		||||
            .
 | 
			
		||||
        env:
 | 
			
		||||
          INPUT_PATH: build/gh-pages
 | 
			
		||||
 | 
			
		||||
      - name: Upload the website
 | 
			
		||||
        uses: actions/upload-artifact@v4
 | 
			
		||||
        with:
 | 
			
		||||
          name: github-pages
 | 
			
		||||
          path: ${{ runner.temp }}/website.tar
 | 
			
		||||
          retention-days: 1
 | 
			
		||||
          if-no-files-found: error
 | 
			
		||||
 | 
			
		||||
  deploy:
 | 
			
		||||
    name: Deploy
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    needs: build
 | 
			
		||||
    permissions:
 | 
			
		||||
      pages: write  # Required to deploy to GitHub Pages.
 | 
			
		||||
      id-token: write  # Required to verify that the deployment originates from this workflow.
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Deploy the website
 | 
			
		||||
        uses: actions/deploy-pages@v4
 | 
			
		||||
		Reference in New Issue
	
	Block a user