Skip to content

Commit 435eab2

Browse files
committed
Added release workflow
1 parent 5e654c2 commit 435eab2

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: GitHub Actions Demo
2+
run-name: New Release Workflow
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version number for the new release'
8+
required: true
9+
default: '2.0.0'
10+
commit_hash:
11+
description: 'Commit hash for the release'
12+
required: true
13+
default: ''
14+
message:
15+
description: 'Release message'
16+
required: true
17+
default: ''
18+
jobs:
19+
run-test:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
with:
25+
ref: ${{ github.event.inputs.commit_hash || github.sha }}
26+
27+
- name: Run Tests
28+
run: mvn test
29+
30+
31+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
32+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
33+
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
34+
- name: Check out repository code
35+
uses: actions/checkout@v4
36+
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
37+
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
38+
- name: List files in the repository
39+
run: |
40+
ls ${{ github.workspace }}
41+
- run: echo "🍏 This job's status is ${{ job.status }}."

0 commit comments

Comments
 (0)