Skip to content

Commit 748bdb3

Browse files
committed
revert until 615fc6f
1 parent 8777574 commit 748bdb3

File tree

3 files changed

+2346
-2361
lines changed

3 files changed

+2346
-2361
lines changed

.github/workflows/release-and-publish.yml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- debug-release
87

98
jobs:
109
check_last_commit_author:
@@ -171,6 +170,7 @@ jobs:
171170
uses: actions/checkout@v4
172171
with:
173172
fetch-depth: 0
173+
token: ${{ secrets.ADMIN_TOKEN }} # Use the new token for authentication
174174
- name: Set up Python
175175
uses: actions/setup-python@v4
176176
with:
@@ -190,43 +190,9 @@ jobs:
190190
with:
191191
name: OpenAdapt
192192
path: dist/
193-
- name: Set Python path
194-
run: |
195-
PYTHON_PATH=$(dirname $(which python3.10))
196-
echo "PYTHON_PATH=$PYTHON_PATH" >> $GITHUB_ENV
197-
echo "$PYTHON_PATH" >> $GITHUB_PATH
198-
echo "Set PYTHON_PATH to: $PYTHON_PATH"
199-
echo "Current PATH: $PATH"
200-
echo "Current GITHUB_PATH:"
201-
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 |')"
225193
- name: Python Semantic Release
226194
id: semantic_release
227-
uses: python-semantic-release/[email protected]
228-
env:
229-
PYTHON_PATH: ${{ env.PYTHON_PATH }}
195+
uses: python-semantic-release/[email protected]
230196
with:
231197
github_token: ${{ secrets.ADMIN_TOKEN }} # Use the new token for authentication
232198
git_committer_name: "OpenAdapt Bot"

0 commit comments

Comments
 (0)