From 388cdb59c0f44cbd20717330e417ce578db89b79 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Thu, 10 Oct 2024 15:30:26 -0400 Subject: [PATCH 1/4] chore: fix releasing.md --- RELEASING.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index 540be48..239cf3e 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -12,5 +12,4 @@ Then: 4. Update each README 5. Open a PR 6. Once approved, merge the PR -7. (if releasing the main crate) Run `cargo release -p cql2`, then `cargo release -p cql2 --execute` -8. (if releasing the cli crate) run `cargo release -p cql2-cli`, then `cargo release -p cql2-cli --execute` +7. `cargo release -p cql2 --execute`, then `cargo release -p cql2-cli --execute` From a1e27ce2b93fb732dc71f1486d03bcf9dbe73095 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Thu, 10 Oct 2024 15:31:33 -0400 Subject: [PATCH 2/4] ci: fix docs --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 066c301..8557d74 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -25,7 +25,7 @@ jobs: - name: Install Python run: uv python install # we use uv instead of setup-python so we get python-version resolution between our two packages - name: Sync - run: uv sync + run: uv sync && uv sync --no-dev --inexact --directory python - name: Deploy run: | VERSION=$(git describe --tags --match="v*" --abbrev=0) From 1ccfb412b179db471c065170fef6736e83404a8c Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Thu, 10 Oct 2024 15:33:11 -0400 Subject: [PATCH 3/4] ci: don't deploy when the cli tag pushes --- .github/workflows/python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index eeadae7..a9f67dc 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -5,7 +5,7 @@ on: branches: - main tags: - - '*' + - 'v*' paths: - python/** pull_request: From 35c3509fb87ea6b064f8a8fcc9f16234704059eb Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Thu, 10 Oct 2024 15:38:19 -0400 Subject: [PATCH 4/4] fix: need to fetch all the history --- .github/workflows/docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8557d74..2453be7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,6 +18,8 @@ jobs: GIT_COMMITTER_EMAIL: ci-bot@example.com steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 # for git describe - uses: Swatinem/rust-cache@v2 - uses: astral-sh/setup-uv@v3 with: