-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Attach ZIP to GitHub Release Workflow
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 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,11 @@ | ||
# Export-ignore files in the root directory that start with a dot | ||
/.* export-ignore | ||
|
||
# Export-ignore a directory named "test" in the root directory | ||
/test export-ignore | ||
|
||
# Export-ignore a file named "phpunit.xml" in the root directory | ||
/phpunit.xml export-ignore | ||
|
||
# Export-ignore a file named "README.md" in the root directory | ||
/README.md export-ignore |
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,30 @@ | ||
name: Attach ZIP to GitHub Release | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
attach-zip: | ||
name: Attach ZIP to release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.3' | ||
tools: composer:v2 | ||
coverage: none | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Create and attach ZIP | ||
uses: concrete5-community/gh-package-release-attach@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
remove-files: | | ||
composer.json | ||
composer.lock | ||
keep-files: | | ||
README.md |