Skip to content

Commit

Permalink
Add Attach ZIP to GitHub Release Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
biplobice committed May 28, 2024
1 parent 45ea031 commit dbc9ac9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitattributes
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
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
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

0 comments on commit dbc9ac9

Please sign in to comment.