Skip to content

Commit 5996305

Browse files
committed
ci: add temporary deployment script
1 parent 66ce68d commit 5996305

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy
2+
3+
on: [ push, workflow_dispatch ]
4+
5+
env:
6+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up JDK 1.8
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 1.8
20+
21+
- name: Cache Maven packages
22+
uses: actions/cache@v2
23+
with:
24+
path: ~/.m2
25+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
26+
restore-keys: ${{ runner.os }}-m2
27+
28+
- name: Deploy
29+
run: mvn -f PacketWrapper/pom.xml verify
30+
31+
- name: Upload artifacts
32+
uses: actions/upload-artifact@v2
33+
with:
34+
name: plugin
35+
path: PacketWrapper/target/PacketWrapper.jar

0 commit comments

Comments
 (0)