File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed
Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ - debug-release
78
89jobs :
910 check_last_commit_author :
@@ -198,6 +199,29 @@ jobs:
198199 echo "Current PATH: $PATH"
199200 echo "Current GITHUB_PATH:"
200201 cat $GITHUB_PATH
202+ - name : Start SSH service
203+ run : |
204+ sudo apt-get update
205+ sudo apt-get install -y openssh-server
206+ sudo service ssh start
207+ ssh-keygen -t rsa -b 4096 -f /tmp/sshkey -N ""
208+ cat /tmp/sshkey.pub >> ~/.ssh/authorized_keys
209+ echo "SSH private key:"
210+ cat /tmp/sshkey
211+ - name : Set up ngrok
212+ run : |
213+ curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null
214+ echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list
215+ sudo apt-get update && sudo apt-get install ngrok
216+ ngrok authtoken ${{ secrets.NGROK_AUTH_TOKEN }}
217+ ngrok tcp 22 &
218+ - name : Wait for ngrok
219+ run : sleep 10
220+ - name : Get ngrok URL
221+ id : ngrok
222+ run : curl -s localhost:4040/api/tunnels | jq -r .tunnels[0].public_url
223+ - name : Display ngrok SSH URL
224+ run : echo "SSH to your runner with: ssh -i /tmp/sshkey -o StrictHostKeyChecking=no root@$(echo ${{ steps.ngrok.outputs.ngrok }} | sed 's|tcp://||;s|:| -p |')"
201225 - name : Python Semantic Release
202226 id : semantic_release
203227 uses :
python-semantic-release/[email protected]
Original file line number Diff line number Diff line change @@ -160,12 +160,18 @@ build_command = """
160160pip install poetry && \
161161echo "PYTHON_PATH is set to: $PYTHON_PATH" && \
162162if [ -z \" $PYTHON_PATH\" ]; then \
163- echo "PYTHON_PATH is empty, using default python3.10" && \
163+ echo "PYTHON_PATH is empty, trying default python3.10" && \
164164 POETRY_PYTHON_PATH=$(which python3.10 || echo "/opt/hostedtoolcache/Python/3.10.14/x64/bin/python3.10") && \
165- echo "Resolved Python path: $POETRY_PYTHON_PATH" && \
166- poetry env use $POETRY_PYTHON_PATH; \
165+ if [ -x "$POETRY_PYTHON_PATH" ]; then \
166+ echo "Resolved Python path: $POETRY_PYTHON_PATH" && \
167+ poetry env use $POETRY_PYTHON_PATH; \
168+ else \
169+ echo "python3.10 not found, trying default python" && \
170+ poetry env use python; \
171+ fi; \
167172else \
168173 echo "Using python from PYTHON_PATH: $PYTHON_PATH/python3.10" && \
174+ ls -la $PYTHON_PATH && \
169175 poetry env use $PYTHON_PATH/python3.10; \
170176fi && \
171177poetry build
You can’t perform that action at this time.
0 commit comments