forked from managingwp/cache-purge-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from weavedigitalstudio/dev
🚀 Merge dev into main for latest updates
- Loading branch information
Showing
4 changed files
with
222 additions
and
82 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build Plugin Release | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get the version | ||
id: get_version | ||
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
|
||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
tools: composer | ||
|
||
# Uncomment if you have Composer dependencies | ||
# - name: Install dependencies | ||
# run: composer install --no-dev --optimize-autoloader | ||
|
||
- name: Create build directory | ||
run: mkdir -p build/weave-cache-purge-helper | ||
|
||
- name: Copy plugin files to build directory | ||
run: | | ||
rsync -av --exclude='.git' \ | ||
--exclude='.github' \ | ||
--exclude='build' \ | ||
--exclude='.gitignore' \ | ||
--exclude='README.md' \ | ||
--exclude='CHANGELOG.md' \ | ||
--exclude='composer.json' \ | ||
--exclude='composer.lock' \ | ||
--exclude='.DS_Store' \ | ||
--exclude='.nova' \ | ||
--exclude='node_modules' \ | ||
--exclude='package.json' \ | ||
--exclude='package-lock.json' \ | ||
--exclude='phpcs.xml' \ | ||
--exclude='phpunit.xml' \ | ||
--exclude='tests' \ | ||
. build/weave-cache-purge-helper/ | ||
- name: Create zip file | ||
run: cd build && zip -r weave-cache-purge-helper-${{ env.VERSION }}.zip weave-cache-purge-helper | ||
|
||
- name: Create GitHub release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: build/weave-cache-purge-helper-${{ env.VERSION }}.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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