Skip to content

Commit

Permalink
Merge pull request dita-ot#4365 from dita-ot/feature/add-release-test…
Browse files Browse the repository at this point in the history
…-workflow

Add release test workflow
  • Loading branch information
jelovirt authored Jan 26, 2024
2 parents f2a1714 + c8aaf3f commit b858d1d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release test
on:
push:
branches:
- "release/**"
jobs:
distribution:
if: ${{ github.repository == 'dita-ot/dita-ot' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Set tag name
run: |
echo "tag=${GITHUB_REF#refs/heads/release/}" >> $GITHUB_ENV
- name: Build distribution package
run: |
./gradlew --no-daemon
./gradlew dist -Pcommit=${GITHUB_SHA} -Ptag=${TAG} --no-daemon
env:
TAG: ${{ env.tag }}

0 comments on commit b858d1d

Please sign in to comment.