Skip to content

Commit 4a67a86

Browse files
authored
temporary change to push changes to wporg
1 parent 5c1fc1c commit 4a67a86

File tree

1 file changed

+2
-43
lines changed

1 file changed

+2
-43
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Deploy
22
on:
33
push:
4-
tags:
5-
- "*"
4+
branches:
5+
- master
66
jobs:
77
deploy:
88
name: Deploy to server
@@ -35,47 +35,6 @@ jobs:
3535
composer install --no-dev --prefer-dist --no-progress --no-suggest
3636
yarn run build
3737
yarn run dist
38-
- name: Add SSH Key
39-
run: |
40-
mkdir $HOME/.ssh
41-
echo "$SSH_KEY" > "$HOME/.ssh/key"
42-
chmod 600 "$HOME/.ssh/key"
43-
- name: Deploy to server
44-
run: |
45-
rsync -rc --exclude-from="$GITHUB_WORKSPACE/.distignore" -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no -p $SSH_PORT" "$GITHUB_WORKSPACE/" $SSH_USERNAME@$SSH_HOST:$SSH_PATH
46-
- name: Upload Latest Version to S3
47-
uses: jakejarvis/s3-sync-action@master
48-
with:
49-
args: --acl public-read --follow-symlinks --delete
50-
env:
51-
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
52-
AWS_ACCESS_KEY_ID: ${{ secrets.S3_AWS_KEY_ARTIFACTS }}
53-
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_AWS_SECRET_ARTIFACTS }}
54-
AWS_REGION: 'us-west-1' # optional: defaults to us-east-1
55-
SOURCE_DIR: 'artifact' # optional: defaults to entire repository
56-
DEST_DIR: ${{ secrets.AWS_PRODUCTS_FOLDER }}/$BUILD_NAME/latest
57-
- name: Upload Tagged Version to S3
58-
uses: jakejarvis/s3-sync-action@master
59-
with:
60-
args: --acl public-read --follow-symlinks --delete
61-
env:
62-
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
63-
AWS_ACCESS_KEY_ID: ${{ secrets.S3_AWS_KEY_ARTIFACTS }}
64-
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_AWS_SECRET_ARTIFACTS }}
65-
AWS_REGION: 'us-west-1' # optional: defaults to us-east-1
66-
SOURCE_DIR: 'artifact' # optional: defaults to entire repository
67-
DEST_DIR: ${{ secrets.AWS_PRODUCTS_FOLDER }}/$BUILD_NAME/$BUILD_VERSION
68-
- name: Send update to the store
69-
env:
70-
THEMEISLE_ID: ${{ secrets.THEMEISLE_ID }}
71-
THEMEISLE_AUTH: ${{ secrets.THEMEISLE_AUTH }}
72-
STORE_URL: ${{ secrets.STORE_URL }}
73-
run: |
74-
if [ ! -z "$THEMEISLE_ID" ]; then
75-
STORE_JSON='{"version": "'$BUILD_VERSION'","id": "'$THEMEISLE_ID'","body": ""}';
76-
echo "$STORE_JSON";
77-
curl -X POST -H 'Cache-Control: no-cache' -H "Content-Type: application/json" -H "x-themeisle-auth: $THEMEISLE_AUTH" --data "$STORE_JSON" "$STORE_URL/wp-json/edd-so/v1/update_changelog/" > /dev/null
78-
fi
7938
- name: WordPress Theme Deploy
8039
uses: Codeinwp/action-wordpress-theme-deploy@primary
8140
env:

0 commit comments

Comments
 (0)