Skip to content

Commit f124c45

Browse files
Merge pull request #23 from BeAPI/release-version
add a release version file
2 parents cb498b7 + 23ce279 commit f124c45

2 files changed

Lines changed: 48 additions & 4 deletions

File tree

.distignore

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
.distignore
2-
.github
2+
.env
33
.git
4-
CHANGELOG.md
4+
.github
5+
.gitattributes
6+
.gitignore
7+
.idea
8+
.lando.yml
9+
bin
10+
tests
11+
codeception.dist.yml
512
composer.json
6-
LICENSE.md
7-
README.md
13+
composer.lock
14+
grumphp.yml
15+
phpcs.ruleset.xml
16+
phpcs.xml
17+
phpunit.xml.dist
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Upload Release Asset
2+
3+
on:
4+
push:
5+
# Sequence of patterns matched against refs/tags
6+
tags:
7+
- '*' # Push events to matching *
8+
9+
jobs:
10+
build:
11+
name: Upload Release Asset
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Publish to WP.org
18+
uses: 10up/action-wordpress-plugin-deploy@stable
19+
with:
20+
generate-zip: true
21+
env:
22+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
23+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
24+
SLUG: bea-sanitize-filename
25+
26+
- name: Upload Release
27+
uses: actions/upload-release-asset@v1
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
with:
31+
upload_url: ${{ github.event.release.upload_url }}
32+
asset_path: ${{github.workspace}}/${{ github.event.repository.name }}.zip
33+
asset_name: bea-sanitize-filename.zip
34+
asset_content_type: application/zip

0 commit comments

Comments
 (0)