-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (38 loc) · 1.03 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
39
40
name: Release
on:
push:
branches:
- master # or main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Setup Node LTS
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: "lts/*"
- name: Install dependencies
run: pnpm install
- name: Create release.zip
uses: montudor/action-zip@v1
with:
args: zip -qq -r release.zip modules LICENSE README.md
- name: Generate checksum
uses: jmgilman/actions-generate-checksum@v1
with:
patterns: |
release.zip
- name: Release
env:
WHMCSMP_LOGIN: ${{ vars.WHMCSMP_LOGIN }}
WHMCSMP_PASSWORD: ${{ secrets.WHMCSMP_PASSWORD }}
WHMCSMP_PRODUCTID: ${{ vars.WHMCSMP_PRODUCTID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm semantic-release