-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (36 loc) · 1.48 KB
/
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
on:
push:
tags:
- '*'
name: Create Release
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Create Release
uses: technote-space/release-github-actions@v8
with:
BUILD_COMMAND: 'composer install --no-dev --ignore-platform-reqs && npm ci && npm run build'
CLEAN_TEST_TAG: true
CLEAN_TARGETS: .[!.]*,__tests__,src,package.json,package-lock.json,node_modules,tests,*.xml,vite.config.js,composer.lock,bin,.vscode,phpstan.neon.dist,phpunit.xml.dist,build.json,bun.lockb
COMMIT_MESSAGE: 'Built release for ${{ steps.get_version.outputs.VERSION }}. For a full change log look at the notes within the original/${{ steps.get_version.outputs.VERSION }} release.'
CREATE_MAJOR_VERSION_TAG: false
CREATE_MINOR_VERSION_TAG: false
CREATE_PATCH_VERSION_TAG: false
GITHUB_TOKEN: ${{ secrets.TOKEN }}
ORIGINAL_TAG_PREFIX: original/
OUTPUT_BUILD_INFO_FILENAME: build.json
TEST_TAG_PREFIX: test/
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: biometric-authentication