Skip to content

Commit f212d5a

Browse files
Create pack.yml
1 parent 48a0fa8 commit f212d5a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/pack.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Pack
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up JDK 1.8
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 1.8
16+
- name: Run tests
17+
run: mvn test -Dgroups=pipeline --batch-mode
18+
env:
19+
appSid: ${{secrets.appSidProd}}
20+
appKey: ${{secrets.appKeyProd}}
21+
apiBaseUrl: "https://api.aspose.cloud"
22+
- name: Pack
23+
run: |
24+
mvn package -DskipTests --batch-mode
25+
cp pom.xml aspose-email-cloud-0.0.1.pom
26+
- name: Zip
27+
uses: montudor/action-zip@v0.1.0
28+
with:
29+
args: zip -qq -r ./package.zip ./target/*.jar aspose-email-cloud-0.0.1.pom
30+
- name: Upload artifact
31+
uses: actions/upload-artifact@v1
32+
with:
33+
name: package
34+
path: package.zip

0 commit comments

Comments
 (0)