Skip to content

Commit 1588cd2

Browse files
fix: release automation
1 parent b5de2ad commit 1588cd2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/deploy_main.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,6 @@ jobs:
5353
else
5454
npm run build:prod
5555
fi
56-
57-
- name: Deploy main to root
58-
if: github.ref == 'refs/heads/main'
59-
uses: JamesIves/github-pages-deploy-action@v4
60-
with:
61-
branch: gh-pages
62-
folder: dist # Use the production build folder
63-
target-folder: '' # Deploy to the root folder
64-
token: ${{ secrets.GITHUB_TOKEN }}
65-
clean: true # Clear root before deploying main
66-
6756
- name: Set up Git user
6857
run: |
6958
git config --global user.name "GitHub Actions"
@@ -84,6 +73,17 @@ jobs:
8473
env:
8574
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8675
run: npm run release
76+
- name: Deploy main to root
77+
if: github.ref == 'refs/heads/main'
78+
uses: JamesIves/github-pages-deploy-action@v4
79+
with:
80+
branch: gh-pages
81+
folder: dist # Use the production build folder
82+
target-folder: '' # Deploy to the root folder
83+
token: ${{ secrets.GITHUB_TOKEN }}
84+
clean: true # Clear root before deploying main
85+
86+
8787

8888
- name: Deploy to GitHub Pages
8989
uses: JamesIves/github-pages-deploy-action@v4

0 commit comments

Comments
 (0)