Skip to content

Commit 04a2149

Browse files
authored
Merge pull request #14 from crowdsecurity/markerplace-release
add markerplace content
2 parents c441bc2 + 320155e commit 04a2149

23 files changed

+312
-29
lines changed

.distignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/.cache
2+
/.git
3+
/.github
4+
/.vagrant
5+
/docker
6+
/docs
7+
/node_modules
8+
/scripts
9+
/tests
10+
/vendor/crowdsec/bouncer/vendor
11+
/vendor/crowdsec/bouncer/tools
12+
/vendor/crowdsec/bouncer/var
13+
/vendor/crowdsec/bouncer/tests
14+
/vendor/crowdsec/bouncer/scripts
15+
/vendor/crowdsec/bouncer/examples
16+
/vendor/crowdsec/bouncer/docs
17+
/vendor/crowdsec/bouncer/docker
18+
/vendor/crowdsec/bouncer/README.md
19+
/vendor/crowdsec/bouncer/composer.json
20+
/vendor/crowdsec/bouncer/composer.lock
21+
/vendor/crowdsec/bouncer/phpunit.xml
22+
/vendor/crowdsec/bouncer/.phpdoc-md
23+
/vendor/crowdsec/bouncer/phpstan.neon
24+
/vendor/crowdsec/bouncer/.github
25+
/vendor/crowdsec/.bouncer-key
26+
.editorconfig
27+
.env
28+
.env.example
29+
.gitignore
30+
.composer.json
31+
.composer.lock
32+
docker-compose.yml
33+
*.sh
34+
*.log
35+
README.md
36+
.DS_Store
37+
composer.json
38+
composer.lock
39+
/logs/**
40+
**/*Test.php
41+
Vagrantfile
42+
.distignore
43+
.gitignore

.github/workflows/deploy.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy to WordPress.org
2+
3+
on:
4+
release:
5+
types: [published]
6+
on:
7+
push:
8+
9+
jobs:
10+
tag:
11+
name: New release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
coverage: "none"
21+
extensions: "json,memcached,redis,xsl,ldap,gd"
22+
ini-values: "memory_limit=-1"
23+
php-version: "7.2"
24+
tools: pecl, composer
25+
- name: Display versions
26+
run: |
27+
php -r 'foreach (get_loaded_extensions() as $extension) echo $extension . " " . phpversion($extension) . PHP_EOL;'
28+
php -i
29+
- name: Install PHP dependencies
30+
run: composer install --no-dev --prefer-dist --optimize-autoloader
31+
32+
- name: WordPress Plugin Deploy
33+
id: deploy
34+
uses: 10up/action-wordpress-plugin-deploy@stable
35+
with:
36+
generate-zip: true
37+
env:
38+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
39+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
40+
SLUG: crowdsec
41+
- name: Upload release asset
42+
uses: actions/upload-release-asset@v1
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
with:
46+
upload_url: ${{ github.event.release.upload_url }}
47+
asset_path: ${{github.workspace}}/${{ github.event.repository.name }}.zip
48+
asset_name: ${{ github.event.repository.name }}.zip
49+
asset_content_type: application/zip

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ node_modules/
99
.test-results*
1010
tests/e2e/screenshots
1111
.cookies.json
12+
crowdsec-wp*
1213

1314
# App
1415
.bouncer-key

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 crowdsecurity
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
1-
# CrowdSec WordPress Bouncer
1+
![CrowdSec WordPress Bouncer](assets/banner-772x250.png "CrowdSec WordPress Bouncer")
22

3-
## How to install this plugin in WordPress
3+
# How to install this plugin in WordPress
44

5-
```
6-
- Go to wordpress backend
5+
6+
- Go to WordPress backend
77
- Go to 'Plugins' -> 'Add New' And click on "Upload Plugin" (at the top of the page)
88
- Choose your zipped plugins file and install it
99
- Now you can activate it and see a new menu named "CrowdSec"
10-
```
1110

12-
## Install WordPress and the CrowdSec plugin locally with docker-compose
11+
# FAQ
12+
13+
Look at the [FAQ of this plugin](docs/faq.md).
14+
15+
## Developer resources
16+
17+
- Install WordPress and the CrowdSec plugin locally with docker-compose
1318

1419
Look at the [Installation guide](docs/install-with-docker-compose.md).
15-
## Demo guide
20+
- Demo guide
1621

1722
Follow the [Demo Guide](docs/full-guide.md) to discover the main features this plugin is capable of.
1823

19-
## How to contribute?
24+
- How to contribute?
2025

2126
Look at the [Contributor guide](docs/contribute.md).
2227

23-
## FAQ
28+
# MIT Licence
2429

25-
Look at the [FAQ of this plugin](docs/faq.md).
30+
[MIT License](https://github.com/crowdsecurity/php-cs-bouncer/blob/main/LICENSE)

assets/banner-1544x500.png

615 KB
Loading

assets/banner-772x250.png

180 KB
Loading

assets/icon-128x128.png

12.3 KB
Loading

assets/icon-256x256.png

34.6 KB
Loading

assets/screenshot-1.jpg

141 KB
Loading

0 commit comments

Comments
 (0)