-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.12 KB
/
buildzip.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
name: Release on tag
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
name: Build release zip
runs-on: ubuntu-latest
steps:
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Checkout
uses: actions/checkout@v3
- name: Install checkout deps
working-directory: 'applications'
run: 'bun install '
- name: Build apps in dist
working-directory: '.'
run: 'make compile_apps'
- name: Bump tag
working-directory: '.'
run: 'make update_version'
- name: Compile Release
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'xprcheckout_woo_gateway.zip'
directory: '.'
exclusions: '*.git* /*node_modules/* .editorconfig /*applications/*'
- name: Generate JSON manifest
run: 'VERSION=${{ github.ref_name }} make generate_manifest'
- name: Upload Release
uses: ncipollo/[email protected]
with:
tag: '${{ github.ref_name }}'
artifacts: "xprcheckout_woo_gateway.zip,info.json"
token: ${{ secrets.GITHUB_TOKEN }}