Merge pull request #50 from JunilHwang/dependabot/npm_and_yarn/ejs-3.… #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy document | |
on: | |
push: | |
branches: | |
- 'master' | |
workflow_dispatch: | |
jobs: | |
deploy-document: | |
if: contains(github.event.head_commit.message, 'deploy') == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.MY_TOKEN }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: | | |
git config --global user.email "junil.h@kakao.com" | |
git config --global user.name "JunilHwang" | |
- name: 배포 | |
env: | |
GITHUB_TOKEN: ${{ secrets.MY_TOKEN }} | |
run: | | |
npm install -g yarn | |
yarn install | |
sh deploy-by-workflow.sh "deploy" | |