-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 984 Bytes
/
deploy.yml
File metadata and controls
31 lines (28 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Deploy to SiteGround
on:
push:
branches: [stg, main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
deploy-prod:
name: Deploy to Production
if: github.ref == 'refs/heads/main'
uses: macrosbysara/shared-github-actions/.github/workflows/deploy-theme.yml@main
with:
REMOTE: "macrosbysara.com" # Remote folder to deploy to
theme_name: "macros-by-sara"
flags: "-azr --delete"
with_autoload: true
secrets: inherit
deploy-stg:
name: Deploy to Staging
if: github.ref == 'refs/heads/stg'
uses: macrosbysara/shared-github-actions/.github/workflows/deploy-theme.yml@main
with:
REMOTE: staging6.macrosbysara.com
theme_name: "macros-by-sara"
flags: "-azvr --delete"
with_autoload: true
secrets: inherit