From 1de12fcc83b00c8d3b85866196e4228c073b4839 Mon Sep 17 00:00:00 2001 From: Andreas Lien <30557582+DiFronzo@users.noreply.github.com> Date: Sun, 8 Feb 2026 19:13:58 +0100 Subject: [PATCH 1/4] feat: Add GitHub Actions workflow for automated deployment --- .github/workflows/deploy.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..c0cb3e5 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,35 @@ +name: deploy.yml +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - 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 + + # Update from GitHub repo. + git pull + + # Activate the virtual environment and update dependencies + source www/python/venv/bin/activate + pip install -U pip wheel + pip install -e . --upgrade + + # Load any changes to jobs.yaml + toolforge-jobs load jobs.yaml + + # Restart the webservice + webservice restart From 4e10647276e7d8e6e981a8f05dc0f7d4db153703 Mon Sep 17 00:00:00 2001 From: Andreas Lien <30557582+DiFronzo@users.noreply.github.com> Date: Sun, 8 Feb 2026 20:32:14 +0100 Subject: [PATCH 2/4] Update .github/workflows/deploy.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c0cb3e5..3c1c3a1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,9 +1,9 @@ -name: deploy.yml +name: Deploy on: release: types: [published] jobs: - build: + deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 From ce758543c807702214ca308ba0f0c32c1aad2034 Mon Sep 17 00:00:00 2001 From: Andreas Lien <30557582+DiFronzo@users.noreply.github.com> Date: Sun, 8 Feb 2026 21:00:58 +0100 Subject: [PATCH 3/4] Update .github/workflows/deploy.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/deploy.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3c1c3a1..669d91b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,10 +23,8 @@ jobs: # Update from GitHub repo. git pull - # Activate the virtual environment and update dependencies - source www/python/venv/bin/activate - pip install -U pip wheel - pip install -e . --upgrade + # Ensure the virtual environment exists and update dependencies + bash jobs/update-venv.sh # Load any changes to jobs.yaml toolforge-jobs load jobs.yaml From f7e643259f9f09db2ba4d94e806a419be2765722 Mon Sep 17 00:00:00 2001 From: Andreas Lien <30557582+DiFronzo@users.noreply.github.com> Date: Sun, 8 Feb 2026 21:01:43 +0100 Subject: [PATCH 4/4] Update .github/workflows/deploy.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 669d91b..121311e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,6 +2,9 @@ name: Deploy on: release: types: [published] +concurrency: + group: deploy-production + cancel-in-progress: true jobs: deploy: runs-on: ubuntu-latest