Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy
on:
release:
types: [published]
Comment thread
DiFronzo marked this conversation as resolved.
concurrency:
group: deploy-production
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
Comment thread
DiFronzo marked this conversation as resolved.
- name: Deploy to server
uses: appleboy/ssh-action@v1.2.4
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: 22
request_pty: true
script_stop: true
key: ${{ secrets.KEY }}
script: |
# Become the tool account
become ukbot

Comment thread
DiFronzo marked this conversation as resolved.
# Update from GitHub repo.
git pull
Comment thread
DiFronzo marked this conversation as resolved.

# Ensure the virtual environment exists and update dependencies
bash jobs/update-venv.sh

# Load any changes to jobs.yaml
toolforge-jobs load jobs.yaml

# Restart the webservice
webservice restart