From f9ebe09ef8d2633a056af160bfaf66e6ebf84be9 Mon Sep 17 00:00:00 2001 From: q-posev Date: Mon, 12 Apr 2021 14:26:54 +0200 Subject: [PATCH 1/3] test action for Github page --- .github/workflows/gh-pages.yml | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 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 0000000..e2072a1 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,50 @@ +name: github pages + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: install extra repository + run: sudo add-apt-repository ppa:kelleyk/emacs + + - name: refresh apt + run: sudo apt-get update + + - name: install dependencies + run: sudo apt-get install emacs26 + + - name: install htmlize + run: git clone https://github.com/hniksic/emacs-htmlize && cp emacs-htmlize/htmlize.el docs/ + + - name: make + run: cd tools/ && ./build_doc.sh && cd .. + + - name: pwd + run: pwd + + - name: ls + run: ls -sh ./docs + +# - name: Deploy +# uses: peaceiris/actions-gh-pages@v3 +# with: +# github_token: ${{ secrets.GITHUB_TOKEN }} +# publish_dir: ./docs + + - name: Deploy + uses: JamesIves/github-pages-deploy-action@4.1.0 + with: + branch: gh-pages + folder: ./docs + +# github_token: ${{ secrets.GITHUB_TOKEN }} +# publish_dir: ./docs + + From 35d91b0f1257c2153021f377d9304442ce8e6bac Mon Sep 17 00:00:00 2001 From: q-posev Date: Mon, 12 Apr 2021 14:31:05 +0200 Subject: [PATCH 2/3] rm gitignore in docs --- docs/.gitignore | 1 - 1 file changed, 1 deletion(-) delete mode 100644 docs/.gitignore diff --git a/docs/.gitignore b/docs/.gitignore deleted file mode 100644 index 2d19fc7..0000000 --- a/docs/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.html From 29f3a46bc4f5aae944efbc3fc6e455ad8c6ff1c1 Mon Sep 17 00:00:00 2001 From: q-posev Date: Mon, 12 Apr 2021 16:18:49 +0200 Subject: [PATCH 3/3] avoid cloning htmlize --- .github/workflows/gh-pages.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e2072a1..5d5f78d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -20,9 +20,6 @@ jobs: - name: install dependencies run: sudo apt-get install emacs26 - - name: install htmlize - run: git clone https://github.com/hniksic/emacs-htmlize && cp emacs-htmlize/htmlize.el docs/ - - name: make run: cd tools/ && ./build_doc.sh && cd .. @@ -32,12 +29,6 @@ jobs: - name: ls run: ls -sh ./docs -# - name: Deploy -# uses: peaceiris/actions-gh-pages@v3 -# with: -# github_token: ${{ secrets.GITHUB_TOKEN }} -# publish_dir: ./docs - - name: Deploy uses: JamesIves/github-pages-deploy-action@4.1.0 with: