From 6adab5270e0d9a4404291a00b9a25d13e77b4193 Mon Sep 17 00:00:00 2001 From: thest1tch Date: Sat, 1 Jul 2023 21:14:38 +0500 Subject: [PATCH] update drone ci --- .drone.yml | 18 ++++++++++++++++++ docs/robots.txt | 2 ++ mkdocs.yml | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 docs/robots.txt diff --git a/.drone.yml b/.drone.yml index cb5a1c3..c50c962 100755 --- a/.drone.yml +++ b/.drone.yml @@ -16,6 +16,24 @@ steps: - cp -r site/ /site - chown 1000:1000 /site - chmod -R 777 /site +# when: +# event: +# - push +# branch: +# - states/* + +- name: check-feature + image: git.st1t.ru/thest1tch/mkdocs-material:latest + pull: if-not-exists + volumes: + - name: site + path: /site + commands: + #- pip install -U -r ./requirements.txt + - mkdocs build + - cp -r site/ /site + - chown 1000:1000 /site + - chmod -R 777 /site when: event: - push diff --git a/docs/robots.txt b/docs/robots.txt new file mode 100644 index 0000000..528c4f7 --- /dev/null +++ b/docs/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Sitemap: https://st1t.ru/sitemap.xml \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 11da81d..223021c 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,5 @@ site_name: St1t.ru -site_url: https://st1t.ru +site_url: https://st1t.ru/ repo_url: https://git.st1t.ru/thest1tch/docs repo_name: thest1tch/docs edit_uri: edit/main/docs/