36 lines
857 B
YAML
36 lines
857 B
YAML
# name: Deploy bin
|
|
#
|
|
# # TODO: this should be deployed before service restarts,
|
|
# # if both bin and a service changed.
|
|
# on:
|
|
# push:
|
|
# branches:
|
|
# - main
|
|
# tags:
|
|
# - 'prod'
|
|
# - 'v*'
|
|
# paths:
|
|
# - 'bin/**'
|
|
#
|
|
# jobs:
|
|
# deploy:
|
|
# runs-on: hla-dev
|
|
# defaults:
|
|
# run:
|
|
# working-directory: ./bin
|
|
#
|
|
# env:
|
|
# # commit tagged ? yes->prod : no->dev
|
|
# DEST_DIR: /sls/bd/hla/${{ github.ref_type == 'tag' && 'prod' || 'dev' }}/bin
|
|
#
|
|
# steps:
|
|
# - name: Checkout repository
|
|
# uses: actions/checkout@v4
|
|
#
|
|
# - name: Copy files
|
|
# run: |
|
|
# mkdir -p ${DEST_DIR}
|
|
# cp -r ./* ${DEST_DIR}
|
|
#
|
|
# # TODO: maybe this is better: `rsync -av --delete ./ "${DEST_DIR}/"` # Sync everything perfectly, including hidden files, and delete old stale files
|