Newer
Older
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: Test
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# IF JAVA PROJECT
# - name: Set up JDK 8
# uses: actions/setup-java@v2
# with:
# distribution: 'adopt'
# java-version: '8'
# - name: Where is Java
# run: which java
# - name: Grant execute permission for gradlew
# run: chmod +x gradlew
# - name: Build with Gradle
# run: ./gradlew about installQuasar cleanFrontend assembleFrontend copyDist build --info
# - name: List files in libs
# run: ls -ahl build/libs
# IF QUASAR PROJECT
# - name: Setup Node.js environment
# uses: actions/setup-node@v2.4.1
# with:
# # Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
# node-version: '>= 16.9.1'
# # Set this option if you want the action to check for the latest available version that satisfies the version spec
# check-latest: false
# - run: npm install -g @quasar/cli
# - run: npm install
# - run: quasar build
# - run: pwd && ls -al *
# # DOCKER RELATED
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Build
# uses: docker/build-push-action@v2
# with:
# context: .
# file: ./Dockerfile.gradle.quasar
# platforms: linux/amd64,linux/arm64
# push: false
# IF ELECTRON PROJECT
# electron:
# needs: test
# runs-on: ${{ matrix.os }}
#
# strategy:
# matrix:
# os: [macos-latest, ubuntu-latest, windows-latest]
#
# steps:
# # GET LATEST CODE
# - name: Checkout latest code
# uses: actions/checkout@master
# with:
# fetch-depth: 0
#
# - name: We are running on
# run: echo matrix.os is ${{ matrix.os }}
# # Either:
# # 1. macos-latest
# # 2. ubuntu-latest
# # 3. windows-latest
#
# # SETUP NODE ENVIRONMENT
# - name: Setup Node.js environment
# uses: actions/setup-node@v2.4.1
# with:
# # Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
# node-version: '>= 16.9.1'
# # Set this option if you want the action to check for the latest available version that satisfies the version spec
# check-latest: false
#
# - name: Build/release Electron app
# uses: vedaprakashms/quasar_electron_build@V0.0.1
# with:
# # GitHub token, automatically provided to the action
# # (No need to define this secret in the repo settings)
# github_token: ${{ secrets.github_token }}
#
# - name: List files
# run: ls dist/electron
#
# - name: Rename folders
# run: |
# mv dist/electron/REPOSITORY* REPOSITORY-${{ matrix.os }}
#
# # Electron Archives
# - name: Create zip
# uses: ihiroky/archive-action@v1
# with:
# root_dir: REPORITORY-${{ matrix.os }}
# file_path: REPORITORY-app-${{ matrix.os }}.zip
# verbose: true
# - name: Create tar.gz
# run: |
# tar -cvzf REPOSITORY-app-${{ matrix.os }}-${{ needs.release.outputs.newtag }}.tar.gz REPOSITORY-${{ matrix.os }}
#
# - name: List files
# run: ls