forked from MCZbase/PreCapture
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.46 KB
/
maven-release-windows.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Release Windows
on:
repository_dispatch:
types: [new-version-event]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 12
uses: actions/setup-java@v1
with:
java-version: 12
- name: Build with Maven
# without -DskipTests, we also run tests, which should prevent
# the package from being packaged if tests fail
run: mvn -B package --file pom.xml -P dist
- name: Upload Release
id: upload_release
if: success()
#uses: actions/upload-release-asset@v1
#env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#with:
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
# asset_path: ./my-artifact.zip
# asset_name: my-artifact.zip
# asset_content_type: application/zip
uses: csexton/release-asset-action@v2
with:
pattern: "target/PreCapture*.exe"
github-token: ${{ secrets.GITHUB_TOKEN }}
release-url: ${{ github.event.client_payload.release_url }}