Skip to content

Commit

Permalink
Update website.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir-P committed Jan 1, 2024
1 parent c49a71d commit e326152
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
cd packages/fleather/example
flutter build web --no-tree-shake-icons
- name: Archive the demo build
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: demo_web_build
path: packages/fleather/example/build/web
Expand Down Expand Up @@ -61,26 +61,25 @@ jobs:
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Download demo web build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: demo_web_build
path: docs/content/en/demo
- run: ls
- run: pwd
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
cd docs
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./public
path: docs/public

deploy_website:
environment:
Expand Down

0 comments on commit e326152

Please sign in to comment.