0.1.6 #21
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 to WordPress.org | |
on: | |
release: | |
types: | |
- released | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
- name: Setup composer | |
run: composer setup | |
- name: Setup Node.js 18.15.0 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "18.15.0" | |
- name: Install yarn globally | |
run: npm install --global yarn | |
- name: Install yarn dependencies | |
run: yarn install | |
- name: Compile Scripts | |
run: yarn minify | |
- name: Fix Text Domain | |
run: yarn fixtextdomain | |
- name: Remove Composer Dev Dependencies | |
run: composer build | |
- name: Build plugin | |
run: yarn git-compress | |
- name: Deploy to WordPress.org | |
uses: 10up/action-wordpress-plugin-deploy@stable | |
env: | |
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
SLUG: templatiq | |
BUILD_DIR: templatiq | |
- name: Create zip file | |
run: | | |
tag_name=$(git describe --tags --abbrev=0) | |
zip -r "templatiq.${tag_name}.zip" templatiq | |
- name: Upload zip file as a release asset | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: templatiq*.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |