Skip to content

Commit

Permalink
Change hugo env to prod and simplify github run conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Nov 28, 2023
1 parent c9373eb commit 6fff5a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
branches-ignore:
- main
pull_request:
branches-ignore:
- main

jobs:
deploy:
Expand All @@ -26,6 +23,8 @@ jobs:
extended: true

- name: Build
env:
HUGO_ENV: production
run: hugo --minify -b $URL_DEVELOPMENT/$GITHUB_REF_NAME --destination branch/$GITHUB_REF_NAME

- name: Deploy
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
pull_request:

jobs:
deploy:
Expand All @@ -24,6 +23,8 @@ jobs:
extended: true

- name: Build
env:
HUGO_ENV: production
run: hugo --minify -b $URL_PRODUCTION

- name: Deploy
Expand Down

0 comments on commit 6fff5a2

Please sign in to comment.