Skip to content

Commit

Permalink
ci: fix some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aoudiamoncef committed Nov 8, 2023
1 parent b7db3bc commit 6f48481
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ name: Build staging

on:
push:
branches:
- '**'
pull_request:
branches:
- main
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:

env:
COMMIT_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
BRANCH: ${{ github.event_name == 'pull_request' && format('refs/heads/{0}', github.event.pull_request.head.ref) || github.ref }}

jobs:
build:
Expand All @@ -23,12 +27,12 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: ${{ secrets.HUGO_VERSION }}
hugo-version: ${{ vars.HUGO_VERSION }}
extended: true
env:
HUGO_GOOGLEANALYTICS: ${{ secrets.HUGO_GOOGLE }}
HUGOxPARAMSxALGOLIA_APPID: ${{ secrets.HUGOXPARAMSXALGOLIA_APPID }}
HUGOxPARAMSxALGOLIA_APIKEY: ${{ secrets.ALGOLIA_SEARCH_API_KEY }}
HUGOxPARAMSxALGOLIA_APIKEY: ${{ secrets.HUGOXPARAMSXALGOLIA_APIKEY }}
HUGOxPARAMSxALGOLIA_INDEXNAME: ${{ secrets.HUGOXPARAMSXALGOLIA_INDEXNAME }}

- name: Setup Ruby
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
Expand All @@ -20,12 +21,12 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: ${{ secrets.HUGO_VERSION }}
hugo-version: ${{ vars.HUGO_VERSION }}
extended: true
env:
HUGO_GOOGLEANALYTICS: ${{ secrets.HUGO_GOOGLE}}
HUGOxPARAMSxALGOLIA_APPID: ${{ secrets.HUGOXPARAMSXALGOLIA_APPID }}
HUGOxPARAMSxALGOLIA_APIKEY: ${{ secrets.ALGOLIA_SEARCH_API_KEY }}
HUGOxPARAMSxALGOLIA_APIKEY: ${{ secrets.HUGOXPARAMSXALGOLIA_APIKEY }}
HUGOxPARAMSxALGOLIA_INDEXNAME: ${{ secrets.HUGOXPARAMSXALGOLIA_INDEXNAME }}

- name: Setup Ruby
Expand Down

0 comments on commit 6f48481

Please sign in to comment.