Skip to content

Commit

Permalink
add dev
Browse files Browse the repository at this point in the history
  • Loading branch information
oezguercelebi committed Jan 15, 2025
1 parent 8060384 commit 7a6eb8f
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,34 @@ on:
push:
branches:
- main

- dev

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
persist-credentials: false
hugo-version: 'latest'
extended: true

- name: Build
run: |
yarn install
yarn build
run: hugo --minify
env:
CI: false
HUGO_ENV: production

- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v4
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: public
target-folder: ${{ github.ref_name == 'main' ? '' : 'v2' }}
clean: true

0 comments on commit 7a6eb8f

Please sign in to comment.