-
Notifications
You must be signed in to change notification settings - Fork 11
45 lines (40 loc) · 1.34 KB
/
release.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
44
45
# 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
on:
release:
# Only use the types keyword to narrow down the activity types that will trigger your workflow.
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
architecture: x64
python-version: 3.8
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 8
distribution: adopt
- name: Build with Maven
run: |
mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -e --settings .mvn/custom-settings.xml
mvn test -B --settings .mvn/custom-settings.xml
- name: Build Python package
run: python setup.py sdist
- id: get_version
uses: battila7/get-version-action@v2
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: prokaryote-${{ steps.get_version.outputs.version-without-v }}.tar.gz
path: dist/
- name: pypi-publish
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPITOKEN }}
skip_existing: True