-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (32 loc) · 943 Bytes
/
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
name: Release Auction REST API
on:
workflow_run:
workflows: [ Build Spring Boot Project ]
types:
- completed
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release:
name: Release Auction REST API
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get version
id: get_version
run: |
chmod +x get_version.sh
echo "version=$(./get_version.sh)" >> $GITHUB_OUTPUT
- name: Release Auction REST API
uses: softprops/[email protected]
with:
name: 'Auction REST API - v${{ steps.get_version.outputs.version }}'
tag_name: ${{ steps.get_version.outputs.version }}
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}