mirror of https://github.com/dapr/docs.git
Update GH action versions and Hugo version
Signed-off-by: Marc Duiker <marcduiker@users.noreply.github.com>
This commit is contained in:
parent
871465fba7
commit
e02e48772a
|
|
@ -25,17 +25,17 @@ jobs:
|
||||||
HUGO_ENV: production
|
HUGO_ENV: production
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout docs repo
|
- name: Checkout docs repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '18'
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2.5.0
|
uses: peaceiris/actions-hugo@v3.0.0
|
||||||
with:
|
with:
|
||||||
hugo-version: 0.102.3
|
hugo-version: 0.147.9
|
||||||
extended: true
|
extended: true
|
||||||
- name: Setup Docsy
|
- name: Setup Docsy
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -45,7 +45,6 @@ jobs:
|
||||||
sudo npm install -D --save postcss-cli
|
sudo npm install -D --save postcss-cli
|
||||||
- name: Build Hugo Website
|
- name: Build Hugo Website
|
||||||
run: |
|
run: |
|
||||||
cd daprdocs
|
|
||||||
git config --global --add safe.directory /github/workspace
|
git config --global --add safe.directory /github/workspace
|
||||||
if [ $GITHUB_EVENT_NAME == 'pull_request' ]; then
|
if [ $GITHUB_EVENT_NAME == 'pull_request' ]; then
|
||||||
STAGING_URL="https://${SWA_BASE}-${{github.event.number}}.westus2.azurestaticapps.net/"
|
STAGING_URL="https://${SWA_BASE}-${{github.event.number}}.westus2.azurestaticapps.net/"
|
||||||
|
|
@ -93,7 +92,7 @@ jobs:
|
||||||
ALGOLIA_INDEX_NAME: daprdocs
|
ALGOLIA_INDEX_NAME: daprdocs
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout docs repo
|
- name: Checkout docs repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
- name: Download Hugo artifacts
|
- name: Download Hugo artifacts
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Build and Deploy Job
|
name: Build and Deploy Job
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
uses: Azure/static-web-apps-deploy@v1
|
uses: Azure/static-web-apps-deploy@v1
|
||||||
env:
|
env:
|
||||||
HUGO_ENV: production
|
HUGO_ENV: production
|
||||||
HUGO_VERSION: "0.100.2"
|
HUGO_VERSION: "0.147.9"
|
||||||
with:
|
with:
|
||||||
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_V1_15 }}
|
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_V1_15 }}
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
|
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue