-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 263-polygon-coordinates-to-bounding-box-coor…
…dinates
- Loading branch information
Showing
9 changed files
with
162 additions
and
16 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,5 @@ | ||
{ | ||
"projects": { | ||
"default": "cioos-metadata-form" | ||
} | ||
} |
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,23 @@ | ||
name: Close PR delete firebase channel | ||
on: | ||
pull_request: | ||
types: [closed] | ||
jobs: | ||
delete_firebase_channel: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- id: get-short-name | ||
run: | | ||
id=$(echo ${{github.event.pull_request.head.ref}} | cut -c 1-20) | ||
echo "id=$id" >> $GITHUB_OUTPUT | ||
- name: Delete Preview Channel on Firebase | ||
uses: w9jds/firebase-action@master | ||
with: | ||
args: hosting:channel:delete pr${{github.event.number}}-${{steps.get-short-name.outputs.id}} --force | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | ||
PROJECT_ID: cioos-metadata-form | ||
GITHUB_AUTH: ${{ secrets.ISSUE_CREATOR_PAT }} |
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,39 @@ | ||
# This file was auto-generated by the Firebase CLI | ||
# https://github.com/firebase/firebase-tools | ||
|
||
name: Deploy to Firebase Hosting on PR | ||
'on': | ||
pull_request: | ||
workflow_dispatch: | ||
jobs: | ||
build_and_preview: | ||
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
- name: Install and Build 🔧 | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
REACT_APP_DEV_DEPLOYMENT: true | ||
PUBLIC_URL: / | ||
run: npm ci && npm run build | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: '${{ secrets.GITHUB_TOKEN }}' | ||
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_CIOOS_METADATA_FORM }}' | ||
expires: 30d | ||
entryPoint: '.' | ||
projectId: cioos-metadata-form | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | ||
GMAIL_USER: ${{ secrets.GMAIL_USER }} | ||
GMAIL_PASS: ${{ secrets.GMAIL_PASS }} | ||
DATACITE_USER: ${{ secrets.DATACITE_USER }} | ||
DATACITE_PASS: ${{ secrets.DATACITE_PASS }} | ||
AWS_REGION: ${{ secrets.AWS_REGION }} | ||
AWS_ACCESSKEYID: ${{ secrets.AWS_ACCESSKEYID }} | ||
AWS_SECRETACCESSKEY: ${{ secrets.AWS_SECRETACCESSKEY }} | ||
GITHUB_AUTH: ${{ secrets.ISSUE_CREATOR_PAT }} | ||
PROJECT_PATH: ./firebase-functions | ||
REACT_APP_DEV_DEPLOYMENT: true |
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,62 @@ | ||
name: Netlify Deploy a Preview URL In PR Comment | ||
|
||
env: | ||
DEPLOY_DIRECTORY: ./build | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "src/**" | ||
|
||
jobs: | ||
build-deploy-preview: | ||
timeout-minutes: 15 | ||
concurrency: | ||
group: ci-${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
- name: Install and Build 🔧 | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
run: | | ||
npm ci | ||
npm run build | ||
- name: install netlify cli and deploy to preview mode | ||
id: deploy-preview | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
SENTRY_ENVIRONMENT: "netlify" | ||
run: | | ||
npm install netlify-cli@13 -g | ||
COMMAND="netlify deploy --prod --dir=$DEPLOY_DIRECTORY" | ||
OUTPUT=$(sh -c "$COMMAND") | ||
NETLIFY_OUTPUT=$(echo "$OUTPUT") | ||
NETLIFY_PREVIEW_URL=$(echo "$OUTPUT" | grep -Eo '(http|https)://[a-zA-Z0-9./?=_-]*(--)[a-zA-Z0-9./?=_-]*') | ||
NETLIFY_LOGS_URL=$(echo "$OUTPUT" | grep -Eo '(http|https)://app.netlify.com/[a-zA-Z0-9./?=_-]*') | ||
echo "NETLIFY_PREVIEW_URL=$NETLIFY_PREVIEW_URL" >> $GITHUB_OUTPUT | ||
echo "NETLIFY_LOGS_URL=$NETLIFY_LOGS_URL" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: find the netlify information comment | ||
uses: peter-evans/[email protected] | ||
id: find-comment | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-author: github-actions[bot] | ||
body-includes: Netlify Preview Deployment Information | ||
|
||
- name: create or update comment | ||
uses: peter-evans/[email protected] | ||
id: update-comment | ||
with: | ||
comment-id: ${{ steps.find-comment.outputs.comment-id }} | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
Netlify Preview Deployment Information | ||
- Log URL: ${{ steps.deploy-preview.outputs.NETLIFY_LOGS_URL }} | ||
- Preview URL: ${{ steps.deploy-preview.outputs.NETLIFY_PREVIEW_URL }} | ||
edit-mode: replace |
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,10 @@ | ||
{ | ||
"hosting": { | ||
"public": "build", | ||
"ignore": [ | ||
"firebase.json", | ||
"**/.*", | ||
"**/node_modules/**" | ||
] | ||
} | ||
} |
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
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
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
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