Skip to content

Commit e8dc494

Browse files
jeffpaulAlecRust
andcommitted
Create deploy-on-pushing-a-new-tag-and-create-release-with-attached-zip.yml
Co-Authored-By: Alec Rust <me@alecrust.com>
1 parent 977dc0c commit e8dc494

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy and Release Plugin
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
jobs:
7+
tag:
8+
name: New tag
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
- name: Build
14+
run: |
15+
npm install
16+
npm run build
17+
- name: WordPress Plugin Deploy
18+
id: deploy
19+
uses: 10up/action-wordpress-plugin-deploy@stable
20+
with:
21+
generate-zip: true
22+
env:
23+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
24+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
25+
- name: Create GitHub release
26+
uses: softprops/action-gh-release@v1
27+
with:
28+
files: ${{github.workspace}}/${{ github.event.repository.name }}.zip
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)