Prepare v1.4.5 #24
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: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
tag: | |
name: Release new tagged version | |
runs-on: ubuntu-latest | |
steps: | |
# Release on WordPress.org | |
- uses: actions/checkout@master | |
- name: WordPress Plugin Deploy | |
uses: 10up/action-wordpress-plugin-deploy@stable | |
env: | |
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
SLUG: repack-for-woocommerce | |
# Build Release Zip for GitHub | |
- name: ZIP Release | |
uses: thedoctor0/zip-release@master | |
with: | |
path: '.' | |
filename: 'werepack.zip' | |
exclusions: '*.git* *.circleci* *.DS_Store* .wordpress-org .gitattributes .gitignore .distignore' | |
# Create GitHub Release | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.ref }} | |
body: Find the Changelog at https://wordpress.org/plugins/repack-for-woocommerce/ | |
draft: false | |
prerelease: false | |
# One ZIP upload directly to Release | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | |
asset_path: ./werepack.zip | |
asset_name: repack-for-woocommerce.zip | |
asset_content_type: application/zip |