From 7f907bb60b7b53479b2388798ab08531a463a97b Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Thu, 2 May 2024 15:07:00 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=91=B7=20Store=20html=20artifact?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 14 ++++++++------ noxfile.py | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index daa5399a..844da371 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,13 @@ jobs: ssh-key: ${{ secrets.READ_LNDOCS }} path: lndocs ref: main + - name: Checkout laminci + uses: actions/checkout@v3 + with: + repository: laminlabs/lndocs + ssh-key: ${{ secrets.READ_LNDOCS }} + path: laminci + ref: main - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -34,18 +41,13 @@ jobs: with: path: ~/.cache/pre-commit key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }} - - name: Install Python dependencies - run: | - python -m pip install -U pip - pip install -U laminci + - run: pip install ./laminci - name: Configure AWS uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: eu-central-1 - # - run: nox -s lint - # - run: nox -s install - run: nox -s pull_artifacts - run: nox -s docs - name: Read lamin-project.yaml diff --git a/noxfile.py b/noxfile.py index 4e05e090..efe98199 100644 --- a/noxfile.py +++ b/noxfile.py @@ -4,6 +4,7 @@ from typing import Dict import nox +from laminci import upload_html_artifact from laminci.nox import login_testuser1, run_pre_commit nox.options.default_venv_backend = "none" @@ -216,3 +217,4 @@ def docs(session): session.install(f"{prefix}/lndocs") # do not simply add instance creation here session.run("lndocs", "--strip-prefix", "--error-on-index") # "--strict") + upload_html_artifact() From 00bfd6a2e1ef0dedef7c344dea2cefbe17801969 Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Thu, 2 May 2024 15:07:34 +0200 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=92=9A=20Fix=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 844da371..ced5a9cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: repository: laminlabs/lndocs ssh-key: ${{ secrets.READ_LNDOCS }} path: laminci - ref: main + ref: docshtmls - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} From 2b077ce656c55fb4ed876941a8f8c9ef988a45e8 Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Thu, 2 May 2024 15:11:30 +0200 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=92=9A=20Fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ced5a9cb..240b6395 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,8 +27,8 @@ jobs: - name: Checkout laminci uses: actions/checkout@v3 with: - repository: laminlabs/lndocs - ssh-key: ${{ secrets.READ_LNDOCS }} + repository: laminlabs/laminci + token: ${{ secrets.GH_TOKEN_DEPLOY_LAMINAPP }} path: laminci ref: docshtmls - uses: actions/setup-python@v4 From 16494cc99231a0d83f431070efc1d3b1639573f3 Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Thu, 2 May 2024 15:21:21 +0200 Subject: [PATCH 4/4] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Fix=20package=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lamin-project.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lamin-project.yaml b/lamin-project.yaml index 1aa36525..01b742ac 100644 --- a/lamin-project.yaml +++ b/lamin-project.yaml @@ -2,4 +2,4 @@ project_name: Lamin Docs description: Documentation project_slug: docs repository_name: lamin-docs -package_name: "" +package_name: docs