Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan McClean committed Mar 25, 2022
0 parents commit 4c26e5e
Show file tree
Hide file tree
Showing 13 changed files with 8,268 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Release

# This workflow tags a release, builds front-end assets and sends various notifications & webhooks when a release has been created.
# How to use:
# 1. Create a git tag - `git tag <version number>`
# 2. Push tags to the origin - `git push origin --tags`
# 3. This Github Action will do its stuff...
# 4. Then it will pull the latest notes from CHANGELOG.md and add them to the release.

on:
push:
tags:
- "v*"

jobs:
release:
name: Prepare & Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
tools: composer:v2

- name: Install Composer Dependencies
run: composer install

- name: Get Changelog
id: changelog
uses: statamic/changelog-action@v1
with:
version: ${{ github.ref }}

- 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: ${{ steps.changelog.outputs.text }}
prerelease: ${{ contains(github.ref, '-beta') }}

- name: Comment on related issues
uses: duncanmcclean/post-release-comments@v1.0.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: ${{ github.ref }}
changelog: ${{ steps.changelog.outputs.text }}
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
vendor
.DS_Store
.phpunit.result.cache
node_modules
package-lock.json
.php_cs.cache
.idea
.antlers.json
4 changes: 4 additions & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
preset: laravel
risky: false
disabled:
- concat_without_spaces
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

## Unreleased

## v1.0.0 (2022-03-25)

* Initial Release 🚀
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Steadfast Collective

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Statamic CSV Exporter

> Export collection entries to CSVs
## Installation

You can search for this addon in the `Tools > Addons` section of the Statamic Control Panel and click **install**, or run the following command from your project root:

``` bash
composer require steadfastcollective/statamic-csv-exporter
```

## Usage

To use this addon, follow the usage instructions or [watch this video](https://www.loom.com/share/2d4f2777408a47b1b53d283a0db2cba4):

1. Head into the Control Panel
2. Go to `Utilities` and click into the 'CSV Exporter' utility
3. Select the collections you wish to export and click the 'Export' button
4. A ZIP file will be downloaded. If you open that, you'll find each collection in its own CSV file.

## Changelog

Please see [CHANGELOG](https://github.com/steadfast-collective/statamic-csv-exporter/blob/master/CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](https://github.com/steadfast-collective/statamic-csv-exporter/blob/master/CONTRIBUTING.md) for details.

## Security

If you discover any security related issues, please email [dev@steadfastcollective.com](mailto:dev@steadfastcollective.com) instead of using the issue tracker.

## License

The MIT License (MIT). Please see [License File](https://github.com/steadfast-collective/statamic-csv-exporter/blob/master/LICENSE.md) for more information.
27 changes: 27 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "steadfastcollective/statamic-csv-exporter",
"description": "Export collection entries to CSVs",
"license": "MIT",
"type": "statamic-addon",
"autoload": {
"psr-4": {
"SteadfastCollective\\StatamicCsvExporter\\": "src"
}
},
"extra": {
"statamic": {
"name": "CSV Exporter",
"description": "Export collection entries to CSVs"
},
"laravel": {
"providers": [
"SteadfastCollective\\StatamicCsvExporter\\ServiceProvider"
]
}
},
"require": {
"php": "^7.4 || ^8.0",
"statamic/cms": "3.2.* || 3.3.*",
"maatwebsite/excel": "^3.1"
}
}
Loading

0 comments on commit 4c26e5e

Please sign in to comment.