Skip to content
Merged
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
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Deploy

# Triggered by mobile git tag moves pushed by release.yml:
# - alpha -> every push to main -> deploys light-process-test (lp-test.enixcode.fr)
# - latest -> every stable v* tag push -> deploys light-process (lp.enixcode.fr)
# - push to main -> light-process-test (staging, lp-test.enixcode.fr)
# - push tag v* -> light-process (prod, lp.enixcode.fr)
#
# Both triggers are user pushes, so GitHub's anti-loop rule never applies.

on:
push:
tags:
- alpha
- latest
branches: [main]
tags: ['v*']

jobs:
deploy:
Expand All @@ -20,4 +20,4 @@ jobs:
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_DEPLOY_KEY }}
script: ${{ github.ref_name == 'latest' && 'light-process' || 'light-process-test' }}
script: ${{ github.ref_type == 'tag' && 'light-process' || 'light-process-test' }}
Loading