Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adeFuLoDgu committed Oct 8, 2024
1 parent 4e776df commit 7c0db9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,17 @@ jobs:
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
yarn install --frozen-lockfile --immutable
node ./node_modules/gulp/bin/gulp.js build
cd noname
git add .
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Update sw.js"
fi
- name: Push to origin
cd noname
origin_url=$(echo ${{ github.server_url }} | sed "s/https:\/\//https:\/\/${{ github.repository_owner }}:${{ github.token }}@/")
origin_url=$origin_url/${{ github.repository }}.git
git remote set-url origin ${origin_url}
git push origin master
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
Expand Down

0 comments on commit 7c0db9b

Please sign in to comment.