-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 938 Bytes
/
Copy pathmaven-development.yml
File metadata and controls
36 lines (34 loc) · 938 Bytes
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
name: Run Maven on Commit
on:
push:
branches: [ development ]
paths:
- 'src/*'
jobs:
maven:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Create release
id: create_release
uses: actions/create-release@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: Snapshot-${{ github.run_id }}
release_name: Snapshot ${{ github.run_id }}
draft: false
prerelease: true
- name: Upload Release Asset
id: upload-release-asset
uses: shogo82148/actions-upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/*.jar