From edea1f144ab1fc87efc5291d06649878b04f0899 Mon Sep 17 00:00:00 2001 From: a624669980 Date: Thu, 30 Sep 2021 15:10:41 +0800 Subject: [PATCH] Modify the publishing process --- .github/workflows/casa.yml | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/casa.yml b/.github/workflows/casa.yml index 8132a1d..4418301 100644 --- a/.github/workflows/casa.yml +++ b/.github/workflows/casa.yml @@ -2,15 +2,21 @@ name: Build CasaOS -on: - repository_dispatch: - workflow_dispatch: - inputs: - ssh: - description: 'SSH connection to Actions' - required: false - default: 'false' + #on: + # repository_dispatch: + # workflow_dispatch: + # inputs: + # ssh: + # description: 'SSH connection to Actions' + # required: false +# default: 'false' +on: + push: + branches: + - 'main' + tags: + - 'v*' env: REPO_URL: https://github.com/IceWhaleTech/CasaOS.git REPO_BRANCH: main @@ -28,11 +34,11 @@ jobs: runs-on: ubuntu-latest steps: -# - name: Get release -# id: get_release -# uses: bruceadams/get-release@v1.2.3 -# env: -# GITHUB_TOKEN: ${{ github.token }} + # - name: Get release + # id: get_release + # uses: bruceadams/get-release@v1.2.3 + # env: + # GITHUB_TOKEN: ${{ github.token }} - name: Initialization environment @@ -112,7 +118,6 @@ jobs: ${{ env.BODY }} name: v${{ env.VERSION }} gzip: false - commitish: master allow_override: false prerelease: true # - name: Upload linux-amd64-casaos.tar.gz