Skip to content

Commit 2862590

Browse files
committed
outra versao yalm artifactv4
1 parent 81dbe84 commit 2862590

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/hugo.yaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,25 @@
1-
# Sample workflow for building and deploying a Hugo site to GitHub Pages
21
name: Deploy Hugo site to Pages
32

43
on:
5-
# Runs on pushes targeting the default branch
64
push:
75
branches:
86
- main
9-
10-
# Allows you to run this workflow manually from the Actions tab
117
workflow_dispatch:
128

13-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
149
permissions:
1510
contents: read
1611
pages: write
1712
id-token: write
1813

19-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2114
concurrency:
2215
group: "pages"
2316
cancel-in-progress: false
2417

25-
# Default to bash
2618
defaults:
2719
run:
2820
shell: bash
2921

3022
jobs:
31-
# Build job
3223
build:
3324
runs-on: ubuntu-latest
3425
env:
@@ -52,7 +43,6 @@ jobs:
5243
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
5344
- name: Build with Hugo
5445
env:
55-
# For maximum backward compatibility with Hugo modules
5646
HUGO_ENVIRONMENT: production
5747
HUGO_ENV: production
5848
run: |
@@ -61,11 +51,10 @@ jobs:
6151
--minify \
6252
--baseURL "${{ steps.pages.outputs.base_url }}/"
6353
- name: Upload artifact
64-
uses: actions/upload-artifact@v3
54+
uses: actions/upload-artifact@v4
6555
with:
6656
path: ./public
6757

68-
# Deployment job
6958
deploy:
7059
environment:
7160
name: github-pages
@@ -75,5 +64,4 @@ jobs:
7564
steps:
7665
- name: Deploy to GitHub Pages
7766
id: deployment
78-
uses: actions/deploy-pages@v3
79-
67+
uses: actions/deploy-pages@v3

0 commit comments

Comments
 (0)