Skip to content

Commit

Permalink
Add new task remove target directory before gradle clean
Browse files Browse the repository at this point in the history
  • Loading branch information
daneshk committed Feb 6, 2024
1 parent 42303e0 commit ca332ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest
if: github.repository_owner == 'ballerina-platform'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17.0.7
Expand Down Expand Up @@ -50,6 +50,10 @@ jobs:
git commit -m "Move dependencies to stable version" || echo "No changes to commit"
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Remove Target Directory
run: |
sudo rm -rf ballerina/target
sudo rm -rf ballerina/build
- name: Publish artifact
env:
BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_ACCESS_TOKEN }}
Expand Down

0 comments on commit ca332ec

Please sign in to comment.