Skip to content

Commit

Permalink
test4
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeDTomita committed Aug 4, 2024
1 parent 98f3504 commit 7ef35b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
# branches:
# - master

workflow_dispatch:

permissions:
contents: read
pages: write
Expand All @@ -27,6 +29,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Update homepage in package.json
run: |
sed -i 's#"homepage": ".*"#"homepage": "${{ vars.REACT_APP_HOMEPAGE}}"#' package.json
# dockerでbuildしたパッケージをローカルにコピーする。
- name: Build app with docker
Expand All @@ -35,7 +40,7 @@ jobs:
run: |
# environmentにあった名称でenv_fileを作成し,github actions environment variableを書き込み
# NOTE: env_fileはgitで管理したくないため,workflow実行時に作成している。
environment="staging"
environment=staging
env_file=".env.${environment}"
touch $env_file
cat <<EOF >> $env_file
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "frontend-app",
"version": "0.1.0",
"private": true,
"homepage": "${REACT_APP_HOMEPAGE}",
"homepage": "",
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
Expand Down

0 comments on commit 7ef35b9

Please sign in to comment.