Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
xesrevinu committed Oct 10, 2024
1 parent a8798aa commit 5cd317b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set project name
run: echo "PROJECT_NAME=$(jq -r .name package.json)" >> $GITHUB_ENV

- uses: actions/cache@v4
with:
path: ~/.bun/install/cache
Expand Down Expand Up @@ -51,7 +54,7 @@ jobs:
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: deploy --name=$(jq -r .name package.json)
command: deploy --name=${{ env.PROJECT_NAME }}

- name: Send Deployment Status
if: always()
Expand All @@ -68,6 +71,6 @@ jobs:
'Content-Type': 'application/json'
},
body: JSON.stringify({
content: status === 'failure' ? '❌ ${{ github.event.repository.name }} deployment failed' : '🚀 ${{ github.event.repository.name }} has been released. ${{ env.DEPLOYMENT_URL }}'
content: status === 'failure' ? '❌ ${{ env.PROJECT_NAME }} deployment failed' : '🚀 ${{ env.PROJECT_NAME }} has been released. ${{ env.DEPLOYMENT_URL }}'
})
});

0 comments on commit 5cd317b

Please sign in to comment.