Skip to content

Commit

Permalink
chore: ci実行時、envファイルを作成するステップを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
crab85193 committed Dec 17, 2024
1 parent 89f96f3 commit 499721a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,23 @@ on:
branches: ["main"]

jobs:
create-envfile:
runs-on: ubuntu-latest
steps:
- name: Make envfile
uses: SpicyPizza/create-envfile@v2.0
with:
envkey_REACT_APP_YUMEMI_API_URL: ${{ secrets.YUMEMI_API_URL }}
envkey_REACT_APP_YUMEMI_API_KEY: ${{ secrets.YUMEMI_API_KEY }}
directory: ./
file_name: .env
fail_on_empty: false
sort_keys: false

build:
name: build
runs-on: ubuntu-latest
needs: create-envfile
steps:
- uses: actions/checkout@v3
- name: yarn install
Expand Down

0 comments on commit 499721a

Please sign in to comment.