добавление ранера на обновление
This commit is contained in:
1 parent
1ef973979e
commit
8f7ffe02a2
8 files changed
+283
-13
No files matched your search
@@ -0,0 +1,25 @@
|
||||
name: Deploy documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: oktpserver-deploy
|
||||
steps:
|
||||
- name: Fetch and deploy
|
||||
env:
|
||||
DEPLOY_SHA: ${{ gitea.sha }}
|
||||
run: |
|
||||
set -eu
|
||||
checkout_dir=$(mktemp -d)
|
||||
trap 'rm -rf -- "$checkout_dir"' EXIT
|
||||
git clone --branch main --single-branch \
|
||||
https://sulaco.nodered.ru:5333/COD2/OKTP_SERVER.git "$checkout_dir"
|
||||
cd "$checkout_dir"
|
||||
if [ "$(git rev-parse HEAD)" != "$DEPLOY_SHA" ]; then
|
||||
echo "A newer commit exists; skipping this deployment."
|
||||
exit 0
|
||||
fi
|
||||
bash scripts/deploy.sh
|
||||
Reference in new issue
Block a user