Skip to content

Commit

Permalink
Update build-ui.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Flohhhhh authored Sep 7, 2024
1 parent 031fb64 commit c658729
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/build-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,12 @@ jobs:
cd ulc/src
npm run build
- name: Copy build output
run: |
mkdir -p html
cp -r ulc/src/dist/* html/
- name: Commit build output
- name: Commit and push build output
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd html
git init
git config user.name "github-actions"
git config user.email "[email protected]"
git add .
git commit -m "Deploy build output"
git branch -M main
git remote add origin https://github.com/${{ github.repository }}.git
git push --force origin main
git add html/
git commit -m "Deploy build output" || echo "No changes to commit"
git push origin main

0 comments on commit c658729

Please sign in to comment.