Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-dietrich committed Aug 19, 2024
1 parent 8d83efc commit 8d8d9af
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .workflow/hugo.yaml → .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Deploy LiaScript-Web-Site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["development"]
branches:
- development

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -47,18 +48,19 @@ jobs:
uses: actions/configure-pages@v5
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Install PostCSS, Tailwind and Autoprefixer
run: npm install postcss postcss-cli tailwindcss autoprefixer
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
run: |
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
run: "npm run build"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
- name: show files
run: ls -la public

# Deployment job
#deploy:
Expand Down

0 comments on commit 8d8d9af

Please sign in to comment.