Skip to content

Commit

Permalink
Removed 'Print git remote' and 'Clean gh-pages branch' sections from …
Browse files Browse the repository at this point in the history
…deploy.yml
  • Loading branch information
xoorbes committed Sep 1, 2024
1 parent ebb4cf3 commit 8659c82
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,6 @@ jobs:
- name: Build Docusaurus site
run: npm run build

- name: Print git remote
run: git remote -v

- name: Clean gh-pages branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git fetch origin
git checkout gh-pages || git checkout --orphan gh-pages
git rm -rf .
git clean -fdx
git commit --allow-empty -m "Clean gh-pages branch"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/ttsk-ngo/swdr5-docs.git
git push origin gh-pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
Expand Down

0 comments on commit 8659c82

Please sign in to comment.