Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
ci: migrate GitHub Pages deployment to native Actions
Antonio Ojea82e46e08201d
diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.ymlindex c8717249..8d4428bf 100644--- a/.github/workflows/deploy-github-pages.yml+++ b/.github/workflows/deploy-github-pages.yml@@ -1,16 +1,3 @@-# Copyright 2026 Google LLC-#-# Licensed under the Apache License, Version 2.0 (the "License");-# you may not use this file except in compliance with the License.-# You may obtain a copy of the License at-#-# https://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.name: Deployment to GitHub Pageson:@@ -29,7 +16,9 @@ on:- '.github/workflows/deploy-github-pages.yml'permissions:- contents: write+ contents: read+ pages: write+ id-token: writeenv:REPO_NAME: ${{ github.event.repository.name }}@@ -37,11 +26,14 @@ env:jobs:deploy:+ environment:+ name: github-pages+ url: ${{ steps.deployment.outputs.page_url }}runs-on: ubuntu-latestconcurrency:group: ${{ github.workflow }}-${{ github.ref }}steps:- - uses: actions/checkout@v6+ - uses: actions/checkout@v4with:fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmodsubmodules: recursive # Fetch any git submodules if configured@@ -52,7 +44,7 @@ jobs:hugo-version: '0.136.5' # Matching local Hugo versionextended: true- - uses: actions/setup-node@v6+ - uses: actions/setup-node@v4with:node-version: '20'check-latest: true@@ -67,10 +59,17 @@ jobs:run: hugo --baseURL https://sam-mesh.dev --minifyworking-directory: ./site- - name: Deploy to GitHub Pages- uses: peaceiris/actions-gh-pages@v4+ - name: Create CNAME+ if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}+ run: echo "sam-mesh.dev" > ./site/public/CNAME++ - name: Upload artifact+ uses: actions/upload-pages-artifact@v3if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}with:- github_token: ${{ secrets.GITHUB_TOKEN }}- publish_dir: ./site/public- cname: sam-mesh.dev+ path: ./site/public++ - name: Deploy to GitHub Pages+ id: deployment+ uses: actions/deploy-pages@v4+ if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}