Skip to content

Commit

Permalink
test 14
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthVan committed Jan 28, 2024
1 parent 89729c0 commit dad95a0
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,25 @@ jobs:
- name: Build
run: npm run build

- name: Deploy to bin branch
run: |
cp -r ./dist/* ./
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git add .
git commit -m "Deploy to bin branch"
git push origin main:bin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Deploy to bin branch
# run: |
# cp -r ./dist/* ./
# git config --global user.email "you@example.com"
# git config --global user.name "Your Name"
# git add .
# git commit -m "Deploy to bin branch"
# git push origin main:bin
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload dist repository
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit dad95a0

Please sign in to comment.