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: chmod 777 ./gradlew
- run: ./gradlew app:assemble - run: ./gradlew app:assemble
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: outputs name: outputs
path: app/build/outputs path: app/build/outputs
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: release name: release
path: app/build/outputs/apk/release path: app/build/outputs/apk/release
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: debug name: debug
path: app/build/outputs/apk/debug path: app/build/outputs/apk/debug

View File

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