From ae4ad0e731df8c08db5fd237d4e8b780c8da32f5 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 21 Nov 2023 21:52:57 +0100 Subject: [PATCH 1/4] Testing github pages --- .github/workflows/github-pages.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/github-pages.yml diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml new file mode 100644 index 0000000000..59cb86f3d2 --- /dev/null +++ b/.github/workflows/github-pages.yml @@ -0,0 +1,27 @@ +name: documentation + +on: [push, pull_request, workflow_dispatch] + +permissions: + contents: write + +jobs: + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - name: Install dependencies + run: | + pip install sphinx sphinx_rtd_theme pyparted simple-term-menu + - name: Sphinx build + run: | + sphinx-build docs _build + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + with: + publish_branch: try-github-pages + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: _build/ + force_orphan: true \ No newline at end of file From 35bba30c38e7a8f35edeb52b79c88ae92e259147 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 21 Nov 2023 21:59:25 +0100 Subject: [PATCH 2/4] Adding libparted-dev to the ubuntu machine (I'd like to move away from ubuntu, but the runner recommended it) --- .github/workflows/github-pages.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 59cb86f3d2..c5046c1fdf 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -11,6 +11,9 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 + - name: Install pre-dependencies + run: | + apt update && apt install libparted-dev - name: Install dependencies run: | pip install sphinx sphinx_rtd_theme pyparted simple-term-menu From 917c603e80628e04c52e7de6dc7b5ecaa5a30fe8 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 21 Nov 2023 22:03:22 +0100 Subject: [PATCH 3/4] Debugging --- .github/workflows/github-pages.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index c5046c1fdf..02e2c3cfd9 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -11,9 +11,12 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 + - name: debug + run: | + whoami - name: Install pre-dependencies run: | - apt update && apt install libparted-dev + sudo apt update && sudo apt install libparted-dev - name: Install dependencies run: | pip install sphinx sphinx_rtd_theme pyparted simple-term-menu From e8fddc2598e5de8da6e79903d94ab464a912ec47 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 21 Nov 2023 22:26:58 +0100 Subject: [PATCH 4/4] changed to master branch --- .github/workflows/github-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 02e2c3cfd9..ebea712a2d 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -27,7 +27,7 @@ jobs: uses: peaceiris/actions-gh-pages@v3 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: - publish_branch: try-github-pages + publish_branch: master github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: _build/ force_orphan: true \ No newline at end of file