-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0c466a
commit 04e781f
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Production Deploy | ||
|
||
on: | ||
release: | ||
types: | ||
- released | ||
|
||
jobs: | ||
preview-deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
deployments: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build | ||
run: | | ||
yarn install --immutable --immutable-cache | ||
VITE_MODE=production yarn build | ||
- name: Deploy to production | ||
uses: cloudflare/[email protected] | ||
with: | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
accountId: ${{ secrets.CF_ACCOUNT_ID }} | ||
projectName: idp-fe | ||
directory: build | ||
gitHubToken: ${{ github.token }} | ||
- name: Update GitHub Deployment Status (success) | ||
if: success() | ||
uses: chrnorm/deployment-status@v2 | ||
with: | ||
token: "${{ github.token }}" | ||
state: "success" | ||
deployment-id: ${{ steps.deployment.outputs.deployment_id }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Staging Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
preview-deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
deployments: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build | ||
run: | | ||
yarn install --immutable --immutable-cache | ||
VITE_MODE=staging yarn build | ||
- name: Deploy to production | ||
uses: cloudflare/[email protected] | ||
with: | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
accountId: ${{ secrets.CF_ACCOUNT_ID }} | ||
projectName: idp-fe-stg | ||
directory: build | ||
gitHubToken: ${{ github.token }} | ||
- name: Update GitHub Deployment Status (success) | ||
if: success() | ||
uses: chrnorm/deployment-status@v2 | ||
with: | ||
token: "${{ github.token }}" | ||
state: "success" | ||
deployment-id: ${{ steps.deployment.outputs.deployment_id }} |