Fix GHA #4
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{steps.deployment.outputs.page_url}} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install -y jq moreutils | |
| sudo snap install yq | |
| npm install | |
| yq --version | |
| jq --version | |
| - name: Process Six Group data to JSON | |
| run: | | |
| ./bin/sixgroup_download.sh | |
| ./bin/sixgroup_to_json.mts | |
| - name: Set Status Info | |
| run: | | |
| ./bin/set_status.sh | |
| - name: Build | |
| run: | | |
| npm run build | |
| - name: Upload Artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./dist | |
| - name: Deploy GitHub Pages | |
| uses: actions/deploy-pages@v4 |