Order YAML keys
This commit is contained in:
30
.github/workflows/pages.yml
vendored
30
.github/workflows/pages.yml
vendored
@@ -1,23 +1,14 @@
|
|||||||
name: Deploy Hugo site to Pages
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: ["**"]
|
|
||||||
workflow_dispatch:
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "pages"
|
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
group: "pages"
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
env:
|
||||||
HUGO_VERSION: 0.102.3
|
HUGO_VERSION: 0.102.3
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install Hugo CLI
|
- name: Install Hugo CLI
|
||||||
run: |
|
run: |
|
||||||
@@ -27,13 +18,13 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Setup Pages
|
- id: pages
|
||||||
id: pages
|
name: Setup Pages
|
||||||
uses: actions/configure-pages@v2
|
uses: actions/configure-pages@v2
|
||||||
- name: Build with Hugo
|
- env:
|
||||||
env:
|
|
||||||
HUGO_ENVIRONMENT: production
|
HUGO_ENVIRONMENT: production
|
||||||
HUGO_ENV: production
|
HUGO_ENV: production
|
||||||
|
name: Build with Hugo
|
||||||
run: |
|
run: |
|
||||||
cd exampleSite
|
cd exampleSite
|
||||||
hugo --minify --baseURL ${{ steps.pages.outputs.base_url }} --themesDir ../..
|
hugo --minify --baseURL ${{ steps.pages.outputs.base_url }} --themesDir ../..
|
||||||
@@ -64,3 +55,12 @@ jobs:
|
|||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v1
|
uses: actions/deploy-pages@v1
|
||||||
|
name: Deploy Hugo site to Pages
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["**"]
|
||||||
|
workflow_dispatch:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
|
pages: write
|
||||||
|
Reference in New Issue
Block a user