chore(release): 2.6.0 #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
tag: | |
name: Deploy to WordPress.org | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} | |
- name: Add SSH Key | |
run: | | |
mkdir $HOME/.ssh | |
echo "$SSH_KEY" > "$HOME/.ssh/key" | |
chmod 600 "$HOME/.ssh/key" | |
- name: Install composer deps | |
run: composer install --no-dev --prefer-dist --no-progress --no-suggest | |
- name: Install npm deps | |
run: npm ci | |
- name: Build files | |
run: npm run build | |
- name: Build zip | |
run: npm run dist | |
- name: Upload Latest Version to S3 | |
uses: jakejarvis/s3-sync-action@master | |
with: | |
args: --acl public-read --follow-symlinks --delete | |
env: | |
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET_DOWNLOADS }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.S3_DOWNLOADS_AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_DOWNLOADS_AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: 'us-west-1' # optional: defaults to us-east-1 | |
SOURCE_DIR: 'artifact' # optional: defaults to entire repository | |
DEST_DIR: ${{ secrets.S3_AWS_PRODUCTS_FOLDER }}/otter-pro/latest | |
- name: Upload Tagged Version to S3 | |
uses: jakejarvis/s3-sync-action@master | |
with: | |
args: --acl public-read --follow-symlinks --delete | |
env: | |
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET_DOWNLOADS }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.S3_DOWNLOADS_AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_DOWNLOADS_AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: 'us-west-1' # optional: defaults to us-east-1 | |
SOURCE_DIR: 'artifact' # optional: defaults to entire repository | |
DEST_DIR: ${{ secrets.S3_AWS_PRODUCTS_FOLDER }}/otter-pro/$BUILD_VERSION | |
- name: Send update to the store | |
env: | |
PRODUCT_ID: ${{ secrets.THEMEISLE_ID }} | |
AUTH_TOKEN: ${{ secrets.THEMEISLE_STORE_AUTH }} | |
STORE_URL: ${{ secrets.THEMEISLE_STORE_URL }} | |
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | |
BUILD_VERSION: ${{ steps.get_version.outputs.VERSION }} | |
uses: Codeinwp/action-store-release@main | |
- name: WordPress Plugin Deploy - Otter | |
uses: 10up/action-wordpress-plugin-deploy@master | |
env: | |
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
- name: WordPress Plugin Deploy - Animations | |
uses: nk-o/action-wordpress-plugin-deploy@master | |
env: | |
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
ASSETS_DIR: dist/blocks-animation/.wordpress-org | |
SOURCE_DIR: dist/blocks-animation/ | |
SLUG: blocks-animation | |
- name: WordPress Plugin Deploy - CSS | |
uses: nk-o/action-wordpress-plugin-deploy@master | |
env: | |
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
ASSETS_DIR: dist/blocks-css/.wordpress-org | |
SOURCE_DIR: dist/blocks-css/ | |
SLUG: blocks-css | |
- name: WordPress Plugin Deploy - Export Import | |
uses: nk-o/action-wordpress-plugin-deploy@master | |
env: | |
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
ASSETS_DIR: dist/blocks-export-import/.wordpress-org | |
SOURCE_DIR: dist/blocks-export-import/ | |
SLUG: blocks-export-import |