Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eliofery committed Jan 28, 2025
1 parent cff12fa commit c1b53a8
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,18 @@ jobs:
- name: Build for main branch
if: github.ref == 'refs/heads/main'
run: |
npm ci
lint-staged
yarn install --frozen-lockfile --ignore-engines
yarn lint-staged
npm run build
echo "Build for main completed"
- name: Prepare main folder on gh-pages
if: github.ref == 'refs/heads/main'
run: |
git checkout gh-pages
mkdir -p ./main
echo "Preparing main folder"
- name: Deploy to GitHub Pages (main)
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4
Expand All @@ -46,11 +53,18 @@ jobs:
- name: Build for futuretech branch
if: github.ref == 'refs/heads/futuretech'
run: |
npm ci
lint-staged
yarn install --frozen-lockfile --ignore-engines
yarn lint-staged
npm run build
echo "Build for futuretech completed"
- name: Prepare futuretech folder on gh-pages
if: github.ref == 'refs/heads/futuretech'
run: |
git checkout gh-pages
mkdir -p ./futuretech
echo "Preparing futuretech folder"
- name: Deploy to GitHub Pages (futuretech)
if: github.ref == 'refs/heads/futuretech'
uses: JamesIves/github-pages-deploy-action@v4
Expand Down

0 comments on commit c1b53a8

Please sign in to comment.