Repository navigation
sdk/meshnet: add embedded Go SDK for Agent Mesh #731
Workflow file for this run
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: Deployment to GitHub Pages | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'site/**' | |
| - 'docs/**' | |
| - '.github/workflows/deploy-github-pages.yml' | |
| pull_request: | |
| paths: | |
| - 'site/**' | |
| - 'docs/**' | |
| - '.github/workflows/deploy-github-pages.yml' | |
| permissions: | |
| contents: read | |
| env: | |
| REPO_NAME: ${{ github.event.repository.name }} | |
| REPO_OWNER: ${{ github.repository_owner }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
| submodules: recursive # Fetch any git submodules if configured | |
| persist-credentials: false | |
| - name: Setup Hugo | |
| uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0 | |
| with: | |
| hugo-version: '0.147.5' | |
| extended: true | |
| - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | |
| with: | |
| node-version: '20' | |
| check-latest: true | |
| - name: Install PostCSS dependencies | |
| run: npm ci --ignore-scripts --no-audit --no-fund | |
| working-directory: ./site | |
| - name: Build Hugo Site | |
| run: hugo --baseURL https://google.github.io/agentmesh/ --minify | |
| working-directory: ./site | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 | |
| with: | |
| path: ./site/public | |
| deploy: | |
| needs: build | |
| if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }} | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 |