mirror of
https://github.com/tiennm99/miti99.git
synced 2026-09-08 20:20:15 +00:00
Comment out GitHub Pages deployment steps in workflow
Replaced Jinja-style comments with YAML comments for GitHub Pages deployment-related permissions and steps in the hugo.yml workflow. This clarifies that these steps are currently disabled and improves readability.
This commit is contained in:
+14
-14
@@ -8,7 +8,7 @@ on:
|
||||
workflow_dispatch:
|
||||
permissions:
|
||||
contents: read
|
||||
{# pages: write #}
|
||||
# pages: write
|
||||
id-token: write
|
||||
deployments: write
|
||||
concurrency:
|
||||
@@ -41,9 +41,9 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
{# - name: Setup Pages
|
||||
id: pages
|
||||
uses: actions/configure-pages@v5 #}
|
||||
# - name: Setup Pages
|
||||
# id: pages
|
||||
# uses: actions/configure-pages@v5
|
||||
- name: Create directory for user-specific executable files
|
||||
run: |
|
||||
mkdir -p "${HOME}/.local"
|
||||
@@ -97,16 +97,16 @@ jobs:
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: ./public
|
||||
{# deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4 #}
|
||||
# deploy:
|
||||
# environment:
|
||||
# name: github-pages
|
||||
# url: ${{ steps.deployment.outputs.page_url }}
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: build
|
||||
# steps:
|
||||
# - name: Deploy to GitHub Pages
|
||||
# id: deployment
|
||||
# uses: actions/deploy-pages@v4
|
||||
deploy-cloudflare:
|
||||
runs-on: ubuntu-latest
|
||||
name: Deploy to CloudFlare Pages
|
||||
|
||||
Reference in New Issue
Block a user