CI: use gh-pages-action

Signed-off-by: Karol Gugala <kgugala@antmicro.com>
diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml
index 3b23f0e..8e91c44 100644
--- a/.github/workflows/Pipeline.yml
+++ b/.github/workflows/Pipeline.yml
@@ -82,6 +82,8 @@
         run: |
           . ./docs/env/conda/bin/activate f4pga-docs
           make -C docs html
+          cd docs/_build/html
+          touch .nojekyll
 
       - name: '📤 Upload artifact: Sphinx HTML'
         uses: actions/upload-artifact@v3
@@ -91,17 +93,10 @@
 
       - name: 🚀 Publish site to GitHub Pages
         if: github.event_name != 'pull_request'
-        run: |
-          cd docs/_build/html
-          touch .nojekyll
-          git init
-          cp ../../../.git/config ./.git/config
-          git add .
-          git config --local user.email "BuildTheDocs@GitHubActions"
-          git config --local user.name "GitHub Actions"
-          git commit -a -m "update ${{ github.sha }}"
-          git push -u origin +HEAD:gh-pages
-
+        uses: peaceiris/actions-gh-pages@v3
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_dir: docs/_build/html
 
   Install:
     runs-on: ubuntu-latest