Skip to content

Commit

Permalink
deploy:added publish.yml script
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-wasi committed Jan 9, 2025
1 parent 1302d07 commit fb1b407
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish

on:
push:
tags:
- 'v*.*.*'

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Download JAR artifact
uses: actions/download-artifact@v2
with:
name: app-jar
path: .

- name: Publish JAR file
run: |
version=${GITHUB_REF#refs/tags/}
jar_file=$(ls *.jar)
new_name="${version}.jar"
mv "$jar_file" "$new_name"
gh release create "$version" "$new_name" --notes "Release $version"

0 comments on commit fb1b407

Please sign in to comment.