mirror of
https://github.com/revanced/Apktool.git
synced 2024-06-02 11:26:12 +02:00
ci: fix workflow
This commit is contained in:
parent
639681160e
commit
cc37d44a2e
27
.github/workflows/revancedbuild.yml
vendored
27
.github/workflows/revancedbuild.yml
vendored
|
@ -2,22 +2,11 @@ name: Release
|
|||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [master]
|
||||
branches: [ master ]
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
delete-old-versions:
|
||||
name: Delete old versions
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
pkg: ['brut.j.common', 'brut.j.dir', 'brut.j.util', 'apktool-lib', 'apktool-cli']
|
||||
steps:
|
||||
- name: Delete package ${{ matrix.pkg }}
|
||||
uses: actions/delete-package-versions@v3
|
||||
with:
|
||||
package-name: 'org.apktool.${{ matrix.pkg }}'
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -38,10 +27,22 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: ./gradlew build
|
||||
delete-old-versions:
|
||||
name: Delete old versions
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ build ]
|
||||
strategy:
|
||||
matrix:
|
||||
pkg: [ 'brut.j.common', 'brut.j.dir', 'brut.j.util', 'apktool-lib', 'apktool-cli' ]
|
||||
steps:
|
||||
- name: Delete package ${{ matrix.pkg }}
|
||||
uses: actions/delete-package-versions@v3
|
||||
with:
|
||||
package-name: 'org.apktool.${{ matrix.pkg }}'
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build, delete-old-versions]
|
||||
needs: [ delete-old-versions ]
|
||||
steps:
|
||||
- name: Publish to GitHub Packages
|
||||
env:
|
||||
|
|
Loading…
Reference in New Issue
Block a user