Skip to content

Commit

Permalink
change build-and-deploy.yml (#446)
Browse files Browse the repository at this point in the history
* Update build-and-deploy.yml

* Update build-and-deploy.yml
  • Loading branch information
kimorkim authored Jul 25, 2024
1 parent 14fffbe commit a06b0de
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ jobs:
id: target_branch
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
- uses: haya14busa/action-cond@v1
id: deploy_branch
with:
cond: ${{ steps.target_branch.outputs.branch == 'master' }}
if_true: 'build'
if_false: dist/${{ steps.target_branch.outputs.branch }}
- name: Execute build.sh
run: |
sh ./scripts/build.sh
Expand All @@ -47,4 +41,4 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
directory: ./build
branch: ${{ steps.deploy_branch.outputs.value }}
branch: dist/${{ steps.target_branch.outputs.branch }}

0 comments on commit a06b0de

Please sign in to comment.