Add Windows runner
This commit is contained in:
18
.github/workflows/pages.yml
vendored
18
.github/workflows/pages.yml
vendored
@@ -26,8 +26,7 @@ defaults:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Build job
|
build-linux:
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
HUGO_VERSION: 0.102.3
|
HUGO_VERSION: 0.102.3
|
||||||
@@ -55,14 +54,27 @@ jobs:
|
|||||||
uses: actions/upload-pages-artifact@v1
|
uses: actions/upload-pages-artifact@v1
|
||||||
with:
|
with:
|
||||||
path: ./exampleSite/public
|
path: ./exampleSite/public
|
||||||
|
# build-windows:
|
||||||
|
# runs-on: windows-latest
|
||||||
|
# steps:
|
||||||
|
# - name: Checkout
|
||||||
|
# uses: actions/checkout@v3
|
||||||
|
# with:
|
||||||
|
# submodules: recursive
|
||||||
|
# - name: Install Hugo
|
||||||
|
# run: choco install hugo
|
||||||
|
# - name: Build
|
||||||
|
# run: |
|
||||||
|
# cd exampleSite
|
||||||
|
# hugo --baseURL ${{ steps.pages.outputs.base_url }} --environment production --minify --themesDir ../..
|
||||||
|
|
||||||
# Deployment job
|
# Deployment job
|
||||||
deploy:
|
deploy:
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.pages.outputs.base_url }}
|
url: ${{ steps.pages.outputs.base_url }}
|
||||||
|
needs: build-linux
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
|
Reference in New Issue
Block a user