From f02af54356ddcf59ff3149fc505d80122a1884da Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 21 Nov 2023 22:27:10 +0100 Subject: Testing github pages (#2234) * Testing github pages * Adding libparted-dev to the ubuntu machine (I'd like to move away from ubuntu, but the runner recommended it) * Debugging * changed to master branch --- .github/workflows/github-pages.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/github-pages.yml (limited to '.github/workflows/github-pages.yml') diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml new file mode 100644 index 00000000..ebea712a --- /dev/null +++ b/.github/workflows/github-pages.yml @@ -0,0 +1,33 @@ +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: debug + run: | + whoami + - name: Install pre-dependencies + run: | + sudo apt update && sudo apt install libparted-dev + - 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: master + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: _build/ + force_orphan: true \ No newline at end of file -- cgit v1.2.3-70-g09d2 From 349c21d7a2b65884f831a3d09badd11ba8df14b6 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 21 Nov 2023 23:02:47 +0100 Subject: GitHub pages improvement (#2237) * Moved to arch container * Swapped branch for testing * Removed publish if condition for now * I think I got it this time, publish_branch has to be separate in order for the runner to create it and have access to pushing things? * Missing 'git' depndency, to work with git heh --- .github/workflows/github-pages.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.github/workflows/github-pages.yml') diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index ebea712a..1df88dac 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -8,6 +8,9 @@ permissions: jobs: docs: runs-on: ubuntu-latest + container: + image: archlinux:latest + options: --privileged steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 @@ -16,18 +19,15 @@ jobs: whoami - name: Install pre-dependencies run: | - sudo apt update && sudo apt install libparted-dev - - name: Install dependencies - run: | - pip install sphinx sphinx_rtd_theme pyparted simple-term-menu + pacman -Sy --noconfirm git python-pyparted python-simple-term-menu python-setuptools python-sphinx python-sphinx_rtd_theme python-build python-installer python-wheel - 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' }} + # if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: - publish_branch: master + publish_branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: _build/ force_orphan: true \ No newline at end of file -- cgit v1.2.3-70-g09d2 From e73ac39a7eac8d7fe66275316bd1b78f8cfcae42 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 21 Nov 2023 23:45:55 +0100 Subject: It appears jekyll might be needed? (#2239) * It appears jekyll might be needed? https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-enable-built-in-jekyll-enable_jekyll * Added some debugging * Maybe jekyll is not needed? --- .github/workflows/github-pages.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to '.github/workflows/github-pages.yml') diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 1df88dac..f8407170 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -14,15 +14,15 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 - - name: debug - run: | - whoami - name: Install pre-dependencies run: | - pacman -Sy --noconfirm git python-pyparted python-simple-term-menu python-setuptools python-sphinx python-sphinx_rtd_theme python-build python-installer python-wheel + pacman -Sy --noconfirm tree git python-pyparted python-simple-term-menu python-setuptools python-sphinx python-sphinx_rtd_theme python-build python-installer python-wheel - name: Sphinx build run: | sphinx-build docs _build + - name: Some debugging + run: | + tree /__w/archinstall/archinstall/ - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 # if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} @@ -30,4 +30,5 @@ jobs: publish_branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: _build/ - force_orphan: true \ No newline at end of file + force_orphan: true + enable_jekyll: false \ No newline at end of file -- cgit v1.2.3-70-g09d2 From 922f6082b5cc18c08b3bcdef7e658dcdce7a95a4 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 21 Nov 2023 23:56:39 +0100 Subject: Added a CNAME file, as well as removed some debugging (#2240) --- .github/workflows/github-pages.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to '.github/workflows/github-pages.yml') diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index f8407170..b4ff5c37 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -20,9 +20,6 @@ jobs: - name: Sphinx build run: | sphinx-build docs _build - - name: Some debugging - run: | - tree /__w/archinstall/archinstall/ - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 # if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} @@ -31,4 +28,5 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: _build/ force_orphan: true - enable_jekyll: false \ No newline at end of file + enable_jekyll: false # This is required to preserve _static (and thus the theme) + cname: archinstall.archlinux.page \ No newline at end of file -- cgit v1.2.3-70-g09d2 From 64c91cdbcba4b1dc5270c4cf4314943e5b151641 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:14:41 +0100 Subject: Update actions/checkout action to v4 (#2235) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/github-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/github-pages.yml') diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index b4ff5c37..fec53d54 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -12,7 +12,7 @@ jobs: image: archlinux:latest options: --privileged steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v3 - name: Install pre-dependencies run: | -- cgit v1.2.3-70-g09d2 From 03c1989270cac924402a138dfd6df726fcd15d9e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 08:13:41 +0100 Subject: Update actions/setup-python action to v4 (#2236) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/github-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/github-pages.yml') diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index fec53d54..40834229 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -13,7 +13,7 @@ jobs: options: --privileged steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v3 + - uses: actions/setup-python@v4 - name: Install pre-dependencies run: | pacman -Sy --noconfirm tree git python-pyparted python-simple-term-menu python-setuptools python-sphinx python-sphinx_rtd_theme python-build python-installer python-wheel -- cgit v1.2.3-70-g09d2 From 8885d924851872fd626c01e967ef94328c13387c Mon Sep 17 00:00:00 2001 From: Mário Victor Ribeiro Silva Date: Mon, 27 Nov 2023 09:41:34 -0300 Subject: build(gh-pages): change rule to docs build (#2269) --- .github/workflows/github-pages.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to '.github/workflows/github-pages.yml') diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 40834229..9d572ca4 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -1,6 +1,15 @@ name: documentation -on: [push, pull_request, workflow_dispatch] +on: + push: + paths: + - "docs/**" + + pull_request: + paths: + - "docs/**" + + workflow_dispatch: permissions: contents: write -- cgit v1.2.3-70-g09d2 From 9ae1048262fa5ba0e6c9ad77b866fcd29522a55a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:06:19 +0100 Subject: chore(deps): update actions/setup-python action to v5 (#2289) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/github-pages.yml | 2 +- .github/workflows/python-publish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to '.github/workflows/github-pages.yml') diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 9d572ca4..90e49611 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -22,7 +22,7 @@ jobs: options: --privileged steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 - name: Install pre-dependencies run: | pacman -Sy --noconfirm tree git python-pyparted python-simple-term-menu python-setuptools python-sphinx python-sphinx_rtd_theme python-build python-installer python-wheel diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index b204252e..0cf71783 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install dependencies -- cgit v1.2.3-70-g09d2 From 4505f6febb7f8ee324ec633657352b4606b527bd Mon Sep 17 00:00:00 2001 From: Brock Vojkovic Date: Thu, 11 Apr 2024 13:33:00 +0800 Subject: Switch from weekly official to daily official image (https://github.com/archlinux/archinstall/issues/2443) (#2453) --- .github/workflows/bandit.yaml | 2 +- .github/workflows/flake8.yaml | 2 +- .github/workflows/github-pages.yml | 2 +- .github/workflows/iso-build.yaml | 2 +- .github/workflows/mypy.yaml | 2 +- .github/workflows/pytest.yaml | 2 +- .github/workflows/python-build.yml | 2 +- .github/workflows/translation-check.yaml | 2 +- .gitlab-ci.yml | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) (limited to '.github/workflows/github-pages.yml') diff --git a/.github/workflows/bandit.yaml b/.github/workflows/bandit.yaml index 4378e8ac..fee1f837 100644 --- a/.github/workflows/bandit.yaml +++ b/.github/workflows/bandit.yaml @@ -4,7 +4,7 @@ jobs: flake8: runs-on: ubuntu-latest container: - image: archlinux:latest + image: archlinux/archlinux:latest steps: - uses: actions/checkout@v4 - run: pacman --noconfirm -Syu bandit diff --git a/.github/workflows/flake8.yaml b/.github/workflows/flake8.yaml index 823be79c..c9346ccc 100644 --- a/.github/workflows/flake8.yaml +++ b/.github/workflows/flake8.yaml @@ -4,7 +4,7 @@ jobs: flake8: runs-on: ubuntu-latest container: - image: archlinux:latest + image: archlinux/archlinux:latest steps: - uses: actions/checkout@v4 - run: pacman --noconfirm -Syu python python-pip diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 90e49611..6246e214 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -18,7 +18,7 @@ jobs: docs: runs-on: ubuntu-latest container: - image: archlinux:latest + image: archlinux/archlinux:latest options: --privileged steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/iso-build.yaml b/.github/workflows/iso-build.yaml index c2a3ed25..b86c47ec 100644 --- a/.github/workflows/iso-build.yaml +++ b/.github/workflows/iso-build.yaml @@ -23,7 +23,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: archlinux:latest + image: archlinux/archlinux:latest options: --privileged steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/mypy.yaml b/.github/workflows/mypy.yaml index 90200626..39306cd6 100644 --- a/.github/workflows/mypy.yaml +++ b/.github/workflows/mypy.yaml @@ -4,7 +4,7 @@ jobs: mypy: runs-on: ubuntu-latest container: - image: archlinux:latest + image: archlinux/archlinux:latest steps: - uses: actions/checkout@v4 - run: pacman --noconfirm -Syu python mypy python-pip diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index a5d0cb11..6c62dd54 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -4,7 +4,7 @@ jobs: pytest: runs-on: ubuntu-latest container: - image: archlinux:latest + image: archlinux/archlinux:latest options: --privileged steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index 109f3373..483e451b 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -8,7 +8,7 @@ jobs: deploy: runs-on: ubuntu-latest container: - image: archlinux:latest + image: archlinux/archlinux:latest options: --privileged steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/translation-check.yaml b/.github/workflows/translation-check.yaml index 188eeeb8..3cd4d14c 100644 --- a/.github/workflows/translation-check.yaml +++ b/.github/workflows/translation-check.yaml @@ -10,7 +10,7 @@ # translation-check: # runs-on: ubuntu-latest # container: -# image: archlinux:latest +# image: archlinux/archlinux:latest # steps: # - uses: actions/checkout@v4 # - run: pacman --noconfirm -Syu python git diffutils diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ca54c552..ee1b7844 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ # These jobs should leverage the same tag as that runner. If necessary, change the tag from 'docker' to the one it uses. # All jobs will be run in the official archlinux container image, so we will declare that here. -image: archlinux:latest +image: archlinux/archlinux:latest # This can be used to handle common actions. In this case, we do a pacman -Sy to make sure repos are ready to use. before_script: -- cgit v1.2.3-70-g09d2 From 3f4fbed7b7988140d7b8c346893e8b1d86d90db2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:00:55 +1000 Subject: chore(deps): update peaceiris/actions-gh-pages action to v4 (#2451) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/github-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/github-pages.yml') diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 6246e214..65255fd6 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -30,7 +30,7 @@ jobs: run: | sphinx-build docs _build - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 # if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: publish_branch: gh-pages -- cgit v1.2.3-70-g09d2