Skip to content

Commit

Permalink
First major release test (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 authored Jan 10, 2024
1 parent 77e7d6d commit e38a482
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/release-draft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@ permissions:
contents: write

jobs:
build-artifact:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
java-version: 21
distribution: 'temurin'
cache: 'maven'

- name: Resolve/Update Dependencies
run: mvn package dependency:resolve-plugins dependency:go-offline

- name: Build (and run tests)
run: mvn clean install

- name: Save test results
run: |
mkdir -p ~/test-results/junit/
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \;
# build-artifact:
# name: Build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/[email protected]
# with:
# java-version: 21
# distribution: 'temurin'
# cache: 'maven'
#
# - name: Resolve/Update Dependencies
# run: mvn package dependency:resolve-plugins dependency:go-offline
#
# - name: Build (and run tests)
# run: mvn clean install
#
# - name: Save test results
# run: |
# mkdir -p ~/test-results/junit/
# find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \;

update_release_draft:
needs: build-artifact
# needs: build-artifact
permissions:
contents: write
pull-requests: write
Expand All @@ -49,5 +49,7 @@ jobs:
- uses: release-drafter/release-drafter@v5
with:
version: ${{env.VERSION}}
tag: ${{env.VERSION}}
name: "Release ${{env.VERSION}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e38a482

Please sign in to comment.