Skip to content

Commit

Permalink
Add a gh workflow to upload the release asset
Browse files Browse the repository at this point in the history
  • Loading branch information
egli committed May 30, 2024
1 parent 898f731 commit 6e0ae75
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/upload-release-asset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '[0-9]+.[0-9]+.[0-9]+' # Push events to matching release tags, i.e. 0.8.1

name: Upload Release Asset

jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Upload release asset
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
files: ./target/dtbook-schema_*_all.deb

0 comments on commit 6e0ae75

Please sign in to comment.