-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 992 Bytes
/
release.yaml
File metadata and controls
37 lines (31 loc) · 992 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
37
name: Release workoutrecorder-backend
on:
workflow_dispatch:
inputs:
version:
description: 'App version to release'
required: true
default: '1.0.0'
jobs:
release:
name: Release workoutrecorder-backend
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Maven Action
uses: s4u/setup-maven-action@v1.2.1
with:
java-version: 11
maven-version: 3.8.2
- name: Update pom.xml
run: |
version=${{ github.event.inputs.version }}
sed -i "s/app-version/$version/g" pom.xml
- name: Build and Package
run: mvn clean package
- name: Upload Release
run: |
aws s3 cp \
target/workoutrecorder-backend-${{ github.event.inputs.version }}.jar \
s3://red-devops-workout-recorder/release/workoutrecorder-backend-${{ github.event.inputs.version }}.jar