Skip to content

Commit

Permalink
๐Ÿ› Secrets ใŒ env ใซๅพ“ใฃใฆ put ใ•ใ‚Œใฆใ„ใชใ„ใƒใ‚ฐ
Browse files Browse the repository at this point in the history
  • Loading branch information
wappon28dev committed Apr 1, 2024
1 parent f6d4463 commit 2797aed
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,16 @@ jobs:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN_WORKERS }}
command: "deploy --minify src/index.ts --env ${{ env.MODE }}"
workingDirectory: ./api
secrets: |
MODE
API_MAIL_DKIM_PRIVATE_KEY
API_DISCORD_WEBHOOK_URL_CONTACT
API_DISCORD_WEBHOOK_MENTION_ID
API_CONTACT_MANIFEST
API_ASSETS_ENDPOINT
API_ASSETS_ACCESS_KEY
# `secrets` ใƒ—ใƒญใƒ‘ใƒ†ใ‚ฃใƒผใ‚’ๆŒ‡ๅฎšใ™ใ‚‹ใ‚„ใ‚Šๆ–นใ ใจ, Workers ใฏใกใ‚ƒใ‚“ใจ env ใซๅพ“ใฃใฆใƒ‡ใƒ—ใƒญใ‚คใ•ใ‚Œใ‚‹ใ‘ใฉ,
# Secrets ใฏใชใœใ‹ env ใ‚’็„ก่ฆ–ใ—ใฆ put ใ—ใฆใ—ใพใ†ใฎใงใ“ใ“ใง่‡ชๅ‰ใง put ใ™ใ‚‹.
postCommands: |
wrangler secret put MODE --env ${{ env.MODE }}
wrangler secret put API_MAIL_DKIM_PRIVATE_KEY --env ${{ env.MODE }}
wrangler secret put API_DISCORD_WEBHOOK_URL_CONTACT --env ${{ env.MODE }}
wrangler secret put API_DISCORD_WEBHOOK_MENTION_ID --env ${{ env.MODE }}
wrangler secret put API_CONTACT_MANIFEST --env ${{ env.MODE }}
wrangler secret put API_ASSETS_ENDPOINT --env ${{ env.MODE }}
wrangler secret put API_ASSETS_ACCESS_KEY --env ${{ env.MODE }}
env:
MODE: ${{ env.MODE }}
API_MAIL_DKIM_PRIVATE_KEY: ${{ secrets.API_MAIL_DKIM_PRIVATE_KEY }}
Expand Down

0 comments on commit 2797aed

Please sign in to comment.