fetch it all

This commit is contained in:
Jamil Bou Kheir
2022-01-11 16:47:28 -08:00
parent 0cf1bb80e9
commit fd84d960ad

View File

@@ -195,6 +195,8 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
@@ -217,7 +219,6 @@ jobs:
echo 'url: "https://docs.firez.one"' >> _config.yml
bundle exec jekyll build --destination 1.0.0
- run: |
git checkout gh-pages
echo '
<!DOCTYPE html>
<meta charset="utf-8">
@@ -225,13 +226,11 @@ jobs:
<meta http-equiv="refresh" content="0; URL=https://docs.firez.one/1.0.0/">
<link rel="canonical" href="https://docs.firez.one/1.0.0/">
' > index.html
git add .
git commit -m "Update index.html"
# - uses: EndBug/add-and-commit@v7
# with:
# message: Add index.html
# add: index.html
# branch: gh-pages
- uses: EndBug/add-and-commit@v7
with:
message: Add index.html
add: index.html
branch: gh-pages
- name: Publish Docs
uses: JamesIves/github-pages-deploy-action@v4.2.2
with: