-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.05 KB
/
production-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Create production release
on:
push:
tags:
- '*'
env:
PHP_VERSION: 8.0
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: 📄 Clone repository
uses: actions/checkout@v4
- name: ⚙️ Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: package-lock.json
- name: ⬇ Install npm dependencies
run: |
npm ci
- name: 📦 Build the plugin
run: |
npm run build
- name: 🚀 Deploy to WordPress directory
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SLUG: vo-html-sitemap
- name: 🚀 Create a new release
uses: ncipollo/release-action@v1
with:
artifacts: ${{ steps.deploy.outputs.zip_file }}
generateReleaseNotes: true