feat: pod resource overview page #59
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
| # This workflow will build a golang project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
| name: Build WASM and Push to S3 | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.x" | |
| cache: "npm" | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: "1.24" | |
| - name: npm install | |
| run: npm install | |
| - name: Build wasm | |
| run: npm run wasm | |
| - name: Build | |
| run: npm run build | |
| - name: tar dist | |
| run: tar --use-compress-program='gzip --best' -cvf dist.tar.gz dist | |
| - name: upload to s3 | |
| env: | |
| S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }} | |
| S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }} | |
| S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }} | |
| run: | | |
| go run ./tools/upload -file dist.tar.gz -bucket public -key kuview/latest.tar.gz |