Skip to content
Merged

Main #27

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/azure-static-web-apps-calm-plant-0fb33f903.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Frontend PROD Deploy

on:
push:
branches:
- main

jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and Deploy PROD
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
submodules: true
lfs: false

- name: Generate build info env
run: |
echo "REACT_APP_BUILD_SHA=${GITHUB_SHA::7}" > .env
echo "REACT_APP_BUILD_NUMBER=${GITHUB_RUN_NUMBER}" >> .env
echo "REACT_APP_ENVIRONMENT=PROD" >> .env
cat .env

- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_CALM_PLANT_0FB33F903 }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: "/"
api_location: ""
output_location: "dist"
app_build_command: "npm run build"
production_branch: "main"
33 changes: 0 additions & 33 deletions .github/workflows/blank.yml

This file was deleted.

23 changes: 3 additions & 20 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ on:
push:
branches:
- dev
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- dev

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
name: Build and Deploy DEV
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
submodules: true
lfs: false
Expand All @@ -29,7 +24,7 @@ jobs:

- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
uses: Azure/static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_HAPPY_ISLAND_094FE5703 }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -38,15 +33,3 @@ jobs:
api_location: ""
output_location: "dist"
app_build_command: "npm run build"

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_HAPPY_ISLAND_094FE5703 }}
action: "close"
Loading