Skip to content

Commit

Permalink
Merge pull request #181 from mediasanctuary/main
Browse files Browse the repository at this point in the history
Eco Art Trail stuff
  • Loading branch information
dphiffer authored Mar 14, 2024
2 parents 8177666 + aa82545 commit a9b9a6c
Show file tree
Hide file tree
Showing 7 changed files with 337 additions and 246 deletions.
66 changes: 31 additions & 35 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,39 @@
name: Deploy to dev

on:
push:
branches: [ main ]
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: |
cd wp-content/themes/mediasanctuary
npm install
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Build
run: |
cd wp-content/themes/mediasanctuary
npm run build
- name: Install dependencies
run: |
cd wp-content/themes/mediasanctuary
npm install
- name: Build
run: |
cd wp-content/themes/mediasanctuary
npm run build
- name: Sync
env:
dest: '[email protected]:/home/members/nyma/sites/dev.mediasanctuary.org/web/wp-content/'
run: |
echo "${{secrets.DEPLOY_KEY}}" > deploy_key
chmod 600 ./deploy_key
rsync \
--rsh='ssh -i ./deploy_key -o StrictHostKeyChecking=no' \
--delete \
--checksum \
--recursive \
--verbose \
--human-readable \
--filter='P uploads' \
--exclude wp-content/uploads \
./wp-content/ ${{env.dest}}
- name: Sync
env:
dest: "[email protected]:/home/members/nyma/sites/dev.mediasanctuary.org/web/wp-content/"
run: |
echo "${{secrets.DEPLOY_KEY}}" > deploy_key
chmod 600 ./deploy_key
rsync \
--rsh='ssh -i ./deploy_key -o StrictHostKeyChecking=no' \
--delete \
--checksum \
--recursive \
--verbose \
--human-readable \
--filter='P uploads' \
--exclude wp-content/uploads \
./wp-content/ ${{env.dest}}
66 changes: 31 additions & 35 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,39 @@
name: Deploy to www

on:
push:
branches: [ production ]
push:
branches: [production]

jobs:
deploy:
runs-on: ubuntu-latest
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: |
cd wp-content/themes/mediasanctuary
npm install
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Build
run: |
cd wp-content/themes/mediasanctuary
npm run build
- name: Install dependencies
run: |
cd wp-content/themes/mediasanctuary
npm install
- name: Build
run: |
cd wp-content/themes/mediasanctuary
npm run build
- name: Sync
env:
dest: '[email protected]:/home/members/nyma/sites/new.mediasanctuary.org/web/wp-content/'
run: |
echo "${{secrets.PROD_DEPLOY_KEY}}" > deploy_key
chmod 600 ./deploy_key
rsync \
--rsh='ssh -i ./deploy_key -o StrictHostKeyChecking=no' \
--delete \
--checksum \
--recursive \
--verbose \
--human-readable \
--filter='P uploads' \
--exclude wp-content/uploads \
./wp-content/ ${{env.dest}}
- name: Sync
env:
dest: "[email protected]:/home/members/nyma/sites/new.mediasanctuary.org/web/wp-content/"
run: |
echo "${{secrets.PROD_DEPLOY_KEY}}" > deploy_key
chmod 600 ./deploy_key
rsync \
--rsh='ssh -i ./deploy_key -o StrictHostKeyChecking=no' \
--delete \
--checksum \
--recursive \
--verbose \
--human-readable \
--filter='P uploads' \
--exclude wp-content/uploads \
./wp-content/ ${{env.dest}}
Loading

0 comments on commit a9b9a6c

Please sign in to comment.