Skip to content

Commit 320155e

Browse files
committed
add cd
1 parent 80890e8 commit 320155e

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
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

0 commit comments

Comments
 (0)