From a27bdbdfdb929a039e35c678d99c87c08ae41142 Mon Sep 17 00:00:00 2001 From: BirdZhang <0312birdzhang@gmail.com> Date: Tue, 4 Apr 2023 13:46:29 +0800 Subject: [PATCH] drop update to release --- .github/workflows/build.yml | 25 ++++--------------------- README.md | 4 ---- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2bdcccc..aa28fbf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -79,25 +79,8 @@ jobs: bash -x package.sh shell: bash - - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.MySecret }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.MySecret }} + - name: Upload flashable zip + uses: actions/upload-artifact@master with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: /home/runner/work/${{env.FLASHABLE_DIR}}.zip - asset_name: ${{env.FLASHABLE_DIR}}.zip - asset_content_type: application/zip + name: ${{env.FLASHABLE_DIR}}.zip + path: /home/runner/work/${{env.FLASHABLE_DIR}}.zip diff --git a/README.md b/README.md index 2663f83..6bfffb9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,3 @@ # ci Use github-actions build ubports - -## GITHUB_TOKEN - -Follow https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets \ No newline at end of file