forked from 10up/wpcli-vulnerability-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 758 Bytes
/
stable.yml
File metadata and controls
33 lines (27 loc) · 758 Bytes
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
name: Build Stable branch
permissions:
contents: write
on:
push:
branches:
- trunk
jobs:
release:
name: Push (merge) to trunk
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Build
run: |
composer install --no-dev
composer build-zip
rm -rf ./release && unzip ${{ github.event.repository.name }}.zip -d ./release
- name: Release to Stable
uses: s0/git-publish-subdir-action@ac113f6bfe8896e85a373534242c949a7ea74c98 # develop
env:
REPO: self
BRANCH: stable
FOLDER: release
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: 'Release: ({sha}) {msg}'