From 3a8cdd077196a522ac1c56dffe87f080e8664bcc Mon Sep 17 00:00:00 2001 From: vajonam <152501+vajonam@users.noreply.github.com> Date: Thu, 14 Dec 2023 15:29:35 +0000 Subject: [PATCH] chore: add workflow_dispatch, as well build on my_develop Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com> --- .github/workflows/build.yml | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2568605539c..7224aa0bf7e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,14 @@ name: BUILD on: + workflow_dispatch: + push: branches: - develop - master + - my_develop + tags: - 'v*' pull_request: @@ -76,9 +80,10 @@ jobs: tags: | type=semver,pattern={{raw}} type=ref,event=pr - type=sha,format=long + type=sha type=raw,value=latest-develop,enable=${{ github.ref == 'refs/heads/develop' }} type=raw,value=latest-master,enable=${{ github.ref == 'refs/heads/master' }} + type=raw,value=latest-my_develop,enable=${{ github.ref == 'refs/heads/my_develop' }} - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -103,28 +108,3 @@ jobs: tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }} - publish-web: - name: Deploy to Host - needs: build - if: ${{ github.ref == 'refs/heads/develop' }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Download fluidd.zip - uses: actions/download-artifact@v3 - with: - name: fluidd-${{ github.sha }}.zip - path: ./dist - - - name: Prepare Deploy - run: | - cp ./server/config.json ./dist/config.json - - - name: Deploy to Host - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - run: | - npm run deploy:host:dev