Skip to content

Commit

Permalink
Update release-pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NicK4rT authored Nov 26, 2024
1 parent bf713b8 commit 47dd3f8
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,10 @@ jobs:

- name: Set up SSH for Git
run: |
# Set up SSH key authentication for git
mkdir -p ~/.ssh
echo "${{ secrets.RENDER_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
Expand Down Expand Up @@ -60,24 +55,25 @@ jobs:
run: |
echo "Files copied to the release folder:"
find software/release -type f
- name: Rename file_list.txt to file_list.py and add Python list
run: |
# Rename file_list.txt to file_list.py
mv file_list.txt file_list.py
echo "file_list = [" > file_list.py
cat file_list.txt | while read file; do
echo " '$file'," >> file_list.py
# Rename file_list.txt to file_list.py in the release folder
mv file_list.txt software/release/file_list.py
# Create Python list and add file paths to software/release/file_list.py
echo "file_list = [" > software/release/file_list.py
cat software/release/file_list.py | while read file; do
echo " '$file'," >> software/release/file_list.py
done
echo "]" >> file_list.py
echo "]" >> software/release/file_list.py
- name: Commit and Push Changes
run: |
# Configure Git
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Add, commit and push changes
# Add, commit, and push changes
git add software/release/
git commit -m "Copy updated files to the release folder"
git commit -m "Copy updated files to the release folder and update file_list.py"
git push origin main

0 comments on commit 47dd3f8

Please sign in to comment.