From 8c75b562b65615be64c1101db75aa2b6b7049dc3 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Sat, 17 Apr 2021 11:16:43 +0900 Subject: [PATCH 1/4] Create gh-pages.yml Powered by peaceiris/actions-gh-pages ref. https://github.com/peaceiris/actions-gh-pages --- .github/workflows/gh-pages.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000000..c23a50bd87 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,22 @@ +name: GitHub Pages +on: + push: + branches: + - main +jobs: + gh-pages-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.0 + bundler-cache: true + - name: Jekyll Build + run: bundle exec jekyll build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + personal_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_site From 25b3093c39ad185a3440e6ed521dd6997b336ed1 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Sat, 17 Apr 2021 11:16:54 +0900 Subject: [PATCH 2/4] main branch is now default --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 16a3eeb869..2b524d3df4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [railsdoc.github.io](https://railsdoc.github.io/) -[![Build Status](https://travis-ci.com/railsdoc/railsdoc.github.io.svg?branch=page-source)](https://travis-ci.com/railsdoc/railsdoc.github.io) +[![Build Status](https://travis-ci.com/railsdoc/railsdoc.github.io.svg?branch=main)](https://travis-ci.com/railsdoc/railsdoc.github.io) railsdoc.github.io is yet another Rails API documentation website. From 7b3d097b9f9af4e3bd0b1e98409ca766963e4783 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Sat, 17 Apr 2021 23:48:54 +0900 Subject: [PATCH 3/4] Update gh-pages.yml --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c23a50bd87..c33b839bc6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,4 +1,4 @@ -name: GitHub Pages +name: GitHub Pages Deploy on: push: branches: From 76c9c138172f60f24d5e436014f499e27dcf5bb6 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Sat, 17 Apr 2021 23:56:13 +0900 Subject: [PATCH 4/4] Add Netlify badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2b524d3df4..4cac2d9e85 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # [railsdoc.github.io](https://railsdoc.github.io/) [![Build Status](https://travis-ci.com/railsdoc/railsdoc.github.io.svg?branch=main)](https://travis-ci.com/railsdoc/railsdoc.github.io) +[![Netlify Status](https://api.netlify.com/api/v1/badges/c964029a-6d5a-4f3a-95e9-d35830a2fe83/deploy-status)](https://app.netlify.com/sites/railsdoc-preview/deploys) railsdoc.github.io is yet another Rails API documentation website.