From 5c41e71c2ebffcb844901779d456cca36230b5e0 Mon Sep 17 00:00:00 2001 From: Kirill Druzhinin <112948926+druzhinin-kirill@users.noreply.github.com> Date: Fri, 3 May 2024 09:20:32 +0200 Subject: [PATCH] Create release workflow and add publish docs steps (#17) Create a release workflow and add publish docs steps. The workflow follows the mkdocs recommendation for the setup ([here](https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-github-actions) and [here](https://www.mkdocs.org/user-guide/deploying-your-docs/)). --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ docs/CNAME | 1 + 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 docs/CNAME diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..da147b4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Release + +on: + push: + tags: + - "*" + +jobs: + release: + name: release + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + - name: Set up PDM + uses: pdm-project/setup-pdm@v4 + with: + python-version: "3.10" + - name: Install dependencies + run: | + pdm sync -G docs + - name: Deploy docs + run: | + pdm run mkdocs gh-deploy --force diff --git a/docs/CNAME b/docs/CNAME new file mode 100644 index 0000000..f11de7f --- /dev/null +++ b/docs/CNAME @@ -0,0 +1 @@ +dbt-score.picnic.tech