Skip to content

Commit

Permalink
Fix deploy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 committed Jan 11, 2024
1 parent a6caca7 commit a407596
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 33 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
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: Resolve/Update Dependencies
# run: mvn package dependency:resolve-plugins dependency:go-offline
# - name: Build (and run tests)
# run: mvn clean install
- name: Setting version
run: |
mvn versions:set -DnewVersion="${{ env.VERSION }}"
Expand All @@ -34,4 +34,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Release package with version ${{ env.VERSION }}"
mvn --settings .github/.m2/maven-settings.xml source:jar-no-fork deploy -DskipTests=true -Dmaven.wagon.http.pool=false -DdeplyAtEnd=true
mvn --settings .github/.m2/maven-settings.xml source:jar-no-fork deploy -DskipTests=true -Dmaven.wagon.http.pool=false -DdeployAtEnd=true
44 changes: 22 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/setup-java@v4
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/setup-java@v4
# 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 Down
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,6 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
</plugins>
</build>


Expand Down

0 comments on commit a407596

Please sign in to comment.