Skip to content

Commit

Permalink
new build workflow: build from version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
khelwood committed Apr 25, 2023
1 parent feb86a2 commit 33832d8
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,29 @@

name: Build

# Controls when the action will run. Triggers the workflow on pushes into rc branch.
on:
push:
branches: "rc"
tags:
- '[0-9]+.[0-9]+.[0-9]+*'

jobs:
build:

runs-on: ubuntu-latest

steps:
# Checkout the repo
- uses: actions/checkout@v2

- name: Set up Java 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Build with Maven
run: mvn -B package -Dmaven.test.skip=true --file pom.xml

- name: Rename the build
run: mv target/*.jar target/stan.jar

- name: Upload the artifact
uses: actions/upload-artifact@v2.1.4
with:
name: stan-prod
path: target/stan.jar
- uses: actions/checkout@v2

- name: Set up Java 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Build with Maven
run: mvn -B package -Dmaven.test.skip=true --file pom.xml

- name: Create a release
uses: ncipollo/release-action@v1
with:
artifacts: "target/stan*.jar"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 33832d8

Please sign in to comment.