v0.5.3 #68
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: Generate ZIP for Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build PHP | |
run: composer install --no-dev --optimize-autoloader | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
cache: 'yarn' | |
- name: Install packages w/ Yarn | |
run: yarn install | |
- name: Build with Yarn | |
run: yarn build | |
- name: Create release ZIP | |
uses: thedoctor0/zip-release@master | |
with: | |
type: 'zip' | |
filename: 'wp-rainbow.zip' | |
exclusions: '/*node_modules/* composer.* wp-rainbow-filter-examples.php readme.md package.json .eslintrc.js phpcs.xml phpunit.xml bin/ bin/* /*tests/* yarn.lock .wordpress-org/ .wordpress-org/* src/ src/* src/css/ src/css/* src/utilities/ src/utilities/* blocks/ blocks/* blocks/login-block/ blocks/login-block/* webpack.config.js .gitignore /*.git/* .babelrc /*.phpcs/* /*.github/*' | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: wp-rainbow | |
path: wp-rainbow.zip | |
- name: Upload to release | |
uses: JasonEtco/upload-to-release@master | |
with: | |
args: wp-rainbow.zip application/zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Unzip folder for WP.org | |
uses: montudor/action-zip@v1 | |
with: | |
args: unzip -qq wp-rainbow.zip -d rainbowkit-login-web3-integration-for-sign-in-with-ethereum | |
- name: Upload plugin to WP.org | |
uses: 10up/[email protected] | |
env: | |
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
SLUG: rainbowkit-login-web3-integration-for-sign-in-with-ethereum | |
BUILD_DIR: ./rainbowkit-login-web3-integration-for-sign-in-with-ethereum |