fix(actions): download-artifact

This commit is contained in:
lisonge 2024-06-10 20:53:07 +08:00
parent 0b195f5c68
commit e0565bd285
2 changed files with 16 additions and 7 deletions

View File

@ -34,17 +34,17 @@ jobs:
- run: chmod 777 ./gradlew
- run: ./gradlew app:assemble
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: outputs
path: app/build/outputs
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: release
path: app/build/outputs/apk/release
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: debug
path: app/build/outputs/apk/debug

View File

@ -27,31 +27,40 @@ jobs:
- run: chmod 777 ./gradlew
- run: ./gradlew app:assemble
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: outputs
path: app/build/outputs
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: release
path: app/build/outputs/apk/release
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: debug
path: app/build/outputs/apk/debug
- uses: actions/upload-artifact@v4
with:
name: CHANGELOG.md
path: CHANGELOG.md
release:
needs: build
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: outputs
path: outputs
- uses: actions/download-artifact@v4
with:
name: CHANGELOG.md
- run: ls -R
- id: create_release