Skip to content

Commit

Permalink
加入環境變數
Browse files Browse the repository at this point in the history
  • Loading branch information
Wcc723 committed Sep 15, 2023
1 parent e569417 commit 68ef96c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pm2-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
npm install
npm run swagger
- name: Create .env file
run: |
echo ENV_VARIABLE=${{ secrets.MY_ENV_VARIABLE }} >> .env
# 然後再執行 rsync 來將 .env 文件傳輸到虛擬主機

- name: 更新 known_hosts 文件 # 步驟的名稱
run: | # 將要執行的命令
mkdir -p ~/.ssh # 在用戶的主目錄下創建 .ssh 目錄,如果該目錄已存在,則不會報錯
Expand Down

0 comments on commit 68ef96c

Please sign in to comment.