-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.16 KB
/
main.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
48
49
50
---
name: Release
on:
# Triggers the workflow on push or pull request events
release:
tags:
- 'v*'
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
Client_build:
name: Client build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# # Setup tmate session
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Create zip file
run: |
cd .. && \
zip -r /tmp/student-discount-for-woocommerce.zip student-discount-for-woocommerce -x \
*\.git* \
*/vendor/paragonie/random_compat/build-phar.sh \
@
- name: Show what we are shipping
run: |
unzip -t /tmp/student-discount-for-woocommerce.zip
- name: Create Artifact
uses: actions/upload-artifact@v4
with:
name: student-discount-for-woocommerce
path: /tmp/student-discount-for-woocommerce.zip
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: /tmp/student-discount-for-woocommerce.zip