Skip to content

Commit

Permalink
chore: add workflow_dispatch, as well build on my_develop
Browse files Browse the repository at this point in the history
Signed-off-by: vajonam <[email protected]>
  • Loading branch information
vajonam committed Dec 15, 2023
1 parent 0d058bd commit 3a8cdd0
Showing 1 changed file with 6 additions and 26 deletions.
32 changes: 6 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: BUILD

on:
workflow_dispatch:

push:
branches:
- develop
- master
- my_develop

tags:
- 'v*'
pull_request:
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 3a8cdd0

Please sign in to comment.