-
-
Notifications
You must be signed in to change notification settings - Fork 38
43 lines (39 loc) · 1.16 KB
/
maven.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
name: Java CI with Maven
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
inputs:
name:
description: 'Github Actions'
required: true
default: 'Github Actions'
jobs:
MacOS-x86_64-Build-JDK8:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 8
architecture: x64
- name: Build with Maven
run: mvn -B --show-version -ntp clean package --file pom.xml
- name: Zip and archive current directory
run: zip -r ${{ github.job }}.zip .
working-directory: /Users/runner/work/Brotli4j/
- name: Upload the build to S3
uses: hkusu/s3-upload-action@v2
with:
aws-access-key-id: ${{ secrets.AWS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws-bucket: brotli4j
aws-region: us-east-1
file-path: /Users/runner/work/Brotli4j/${{ github.job }}.zip
public: false
bucket-root: /
destination-dir: release/artifacts/