From d3bc83100e3c6243b445d87a8fd6476bfd68e61e Mon Sep 17 00:00:00 2001 From: 7c00 Date: Mon, 13 Feb 2023 11:52:10 +0800 Subject: [PATCH] Update actions --- .github/workflows/{docs.yml => build-docs.yml} | 4 ++-- .github/workflows/release.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) rename .github/workflows/{docs.yml => build-docs.yml} (91%) diff --git a/.github/workflows/docs.yml b/.github/workflows/build-docs.yml similarity index 91% rename from .github/workflows/docs.yml rename to .github/workflows/build-docs.yml index ee36a37..a731d2f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/build-docs.yml @@ -1,9 +1,9 @@ -name: build +name: build-docs on: push: branches: [main] jobs: - docs: + build-docs: runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe15871..0bdb294 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: build +name: release on: release: types: [published] @@ -20,6 +20,10 @@ jobs: id: release env: GITHUB_TOKEN: ${{ github.token }} + - uses: svenstaro/upload-release-action@v2 + with: + file: example/android/app/build/outputs/apk/release/app-arm64-v8a-release.apk + asset_name: example.apk - uses: actions/setup-node@v3 with: registry-url: "https://registry.npmjs.org" @@ -27,7 +31,3 @@ jobs: - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - uses: svenstaro/upload-release-action@v2 - with: - file: example/android/app/build/outputs/apk/release/app-arm64-v8a-release.apk - asset_name: example.apk