Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 Store html artifact #89

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
ssh-key: ${{ secrets.READ_LNDOCS }}
path: lndocs
ref: main
- name: Checkout laminci
uses: actions/checkout@v3
with:
repository: laminlabs/laminci
token: ${{ secrets.GH_TOKEN_DEPLOY_LAMINAPP }}
path: laminci
ref: docshtmls
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lamin-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ project_name: Lamin Docs
description: Documentation
project_slug: docs
repository_name: lamin-docs
package_name: ""
package_name: docs
2 changes: 2 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()
Loading