diff --git a/.github/workflows/publish.yml b/.github/workflows/release.yml similarity index 68% rename from .github/workflows/publish.yml rename to .github/workflows/release.yml index 1d5cc08..970ac34 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Publish ReVanced Library +name: Release on: workflow_dispatch: @@ -24,23 +24,21 @@ jobs: persist-credentials: false fetch-depth: 0 - - name: Cache Node modules - uses: actions/cache@v3 - with: - path: | - node_modules - key: npm-${{ hashFiles('package-lock.json') }} - - name: Cache Gradle uses: burrunan/gradle-cache-action@v1 - name: Build env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Cleaning is necessary to avoid uploading two identical artifacts with different versions - run: ./gradlew clean --no-daemon + run: ./gradlew build clean - - name: Setup semantic-release + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "lts/*" + cache: 'npm' + + - name: Install dependencies run: npm install - name: Release