From 66fa75f6f7af8b6e45fd721112a1e9580d8db5c2 Mon Sep 17 00:00:00 2001 From: "Ing. Fabian Franz Steiner BSc." Date: Mon, 24 Feb 2025 13:56:24 +0100 Subject: [PATCH 1/2] Add SSH setup for deploy key in release workflow and remove conditional push options --- .github/workflows/release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 332b2be..c317926 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,14 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 # Required for GitVersion to work correctly + + - name: Setup SSH for Deploy Key + if: github.ref == 'refs/heads/main' # Only update for stable releases + run: | + mkdir -p ~/.ssh + echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts - name: Install GitVersion uses: GitTools/actions/gitversion/setup@v0 @@ -79,7 +87,6 @@ jobs: with: commit_message: "Update CHANGELOG for release ${{ steps.gitversion.outputs.semVer }}" file_pattern: "CHANGELOG.md" - push_options: ${{ github.ref == 'refs/heads/main' && '--force' || '' }} - uses: actions/setup-python@v5 @@ -107,7 +114,6 @@ jobs: with: commit_message: "Update pyproject.toml for release ${{ steps.gitversion.outputs.semVer }}" file_pattern: "pyproject.toml" - push_options: ${{ github.ref == 'refs/heads/main' && '--force' || '' }} - name: Build release distributions run: | From 1216a64110368ea29410aabc03cfda84cfc2752f Mon Sep 17 00:00:00 2001 From: fasteiner <75947402+fasteiner@users.noreply.github.com> Date: Mon, 24 Feb 2025 12:57:04 +0000 Subject: [PATCH 2/2] Update pyproject.toml for release 0.4.0-preview.203 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index be41d04..d203459 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "xurrent" -version = "0.4.0-preview.198" +version = "0.4.0-preview.203" authors = [ { name="Fabian Steiner", email="fabian@stei-ner.net" }, ] @@ -18,7 +18,7 @@ Homepage = "https://github.com/fasteiner/xurrent-python" Issues = "https://github.com/fasteiner/xurrent-python/issues" [tool.poetry] name = "xurrent" -version = "0.4.0-preview.198" +version = "0.4.0-preview.203" description = "A python module to interact with the Xurrent API." authors = ["Ing. Fabian Franz Steiner BSc. "] readme = "README.md"