update comment #198
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: deploy-dev | |
"on": | |
push: | |
branches: [dev] | |
concurrency: dev | |
jobs: | |
deploy-dev: | |
runs-on: [self-hosted, dev] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Clean | |
run: make clean | |
# TODO: database upgrades as part of this? Or app handles that? | |
# That means also backups and a retention policy | |
- name: Install | |
run: make install | |
# NOTE: I added a /etc/sudoers rule, to avoid the password prompt | |
# See: https://unix.stackexchange.com/a/606476/290740 | |
- name: Restart Service | |
run: | | |
sudo systemctl daemon-reload | |
sudo systemctl restart ntserv |