From a7356fbaae7fff972f2edd4f1ddca33576bb2ece Mon Sep 17 00:00:00 2001 From: Nick Art <100365428+NicK4rT@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:27:28 -0500 Subject: [PATCH] Update release-pipeline.yml --- .github/workflows/release-pipeline.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-pipeline.yml b/.github/workflows/release-pipeline.yml index bfb83ce..dc9c7df 100644 --- a/.github/workflows/release-pipeline.yml +++ b/.github/workflows/release-pipeline.yml @@ -13,19 +13,22 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 with: - ssh-key: ${{ secrets.RENDER_KEY }} - persist-credentials: false + ssh-key: ${{ secrets.DEPLOYMENT_KEY }} - name: Set up SSH for Git run: | # Set up SSH key authentication for git mkdir -p ~/.ssh - echo "${{ secrets.RENDER_KEY }}" > ~/.ssh/id_rsa + echo "${{ secrets.DEPLOYMENT_KEY }}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa # Add GitHub to known hosts to avoid authenticity prompts ssh-keyscan github.com >> ~/.ssh/known_hosts + # Start SSH agent and add the deploy key + eval "$(ssh-agent -s)" + ssh-add ~/.ssh/id_rsa + - name: Parse File List from release/README.qmd id: parse run: | @@ -43,7 +46,14 @@ jobs: run: | mkdir -p software/release # Ensure the release folder exists while read file; do - cp "$file" software/release/ # Copy files directly to the root of the release folder + # Skip the config.py file + if [[ "$(basename $file)" == "config.py" ]]; then + echo "Skipping config.py" + continue + fi + + # Copy the file, overwriting if it already exists + cp "$file" software/release/ # Overwrite files directly to the root of the release folder done < file_list.txt - name: List Files in Release Folder