diff --git a/openwrt-ci.yml b/openwrt-ci.yml index 428e24027..d66312b0e 100644 --- a/openwrt-ci.yml +++ b/openwrt-ci.yml @@ -43,7 +43,7 @@ jobs: sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d /usr/local/lib/android sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* adoptopenjdk* mysql* php* mongodb* dotnet* moby* snapd* || true sudo -E apt-get update - sudo -E apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler antlr3 gperf swig libtinfo5 + sudo -E apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 unzip zlib1g-dev lib32gcc-s1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler antlr3 gperf swig libtinfo5 sudo -E apt-get -y autoremove --purge sudo -E apt-get clean @@ -129,12 +129,15 @@ jobs: with: name: OpenWrt_firmware path: ./bin/targets/ + + - name: Release firmware + uses: softprops/action-gh-release@v0.1.15 + with: + files: LICENSE + permissions: + contents: write + env: + GITHUB_REPOSITORY: my_gh_org/my_gh_repo # 填入您的仓库名 + - - name: Upload release asset - if: github.event == 'release' - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.YOURTOKEN }} - file: ./artifact/firmware/* - tag: ${{ github.ref }} - file_glob: true +