diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml new file mode 100644 index 0000000..5c966dd --- /dev/null +++ b/.github/workflows/firebase-hosting-merge.yml @@ -0,0 +1,42 @@ +# This file was auto-generated by the Firebase CLI +# https://github.com/firebase/firebase-tools + +name: Deploy to Firebase Hosting on merge +'on': + push: + branches: + - master +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout the code + uses: actions/checkout@v2 + + - name: Install Node + uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'npm' + + - name: Install Pug CLI + run: npm install -g pug-cli + + - name: Install SASS CLI + run: npm install -g sass + + - name: Install JS-YAML CLI + run: npm install -g js-yaml + + - name: Render the website from templates + run: | + chmod +x ./render.sh + ./render.sh + + - name: Firebase Deploy to Production + uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_APP_PRIVACY_POLICY_GENERATOR }}' + channelId: live + projectId: app-privacy-policy-generator diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml new file mode 100644 index 0000000..788d4fa --- /dev/null +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -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 +jobs: + build_and_preview: + if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' + runs-on: ubuntu-latest + steps: + - name: Checkout the code + uses: actions/checkout@v2 + + - name: Install Node + uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'npm' + + - name: Install Pug CLI + run: npm install -g pug-cli + + - name: Install SASS CLI + run: npm install -g sass + + - name: Install JS-YAML CLI + run: npm install -g js-yaml + + - name: Render the website from templates + run: | + chmod +x ./render.sh + ./render.sh + + - name: Firebase Deploy to Preview Channel + uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_APP_PRIVACY_POLICY_GENERATOR }}' + projectId: app-privacy-policy-generator diff --git a/.gitignore b/.gitignore index 0d239fc..ccb89ea 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,3 @@ *.cache node_modules/ dist/ -package-lock.json diff --git a/Readme.md b/Readme.md index 3251dfb..6c0df73 100644 --- a/Readme.md +++ b/Readme.md @@ -27,7 +27,11 @@ -# Contribution +## Status Badges + +[![Deploy to Firebase Hosting on PR](https://github.com/nisrulz/app-privacy-policy-generator/actions/workflows/firebase-hosting-pull-request.yml/badge.svg)](https://github.com/nisrulz/app-privacy-policy-generator/actions/workflows/firebase-hosting-pull-request.yml) + +## Contribution [Read the dev docs](dev-doc.md) to @@ -35,7 +39,7 @@ - [Add a new template for Privacy Policy or Terms & Conditions](https://github.com/nisrulz/app-privacy-policy-generator/blob/master/dev-doc.md#development) - [Update the web app for new features/bugfixes](https://github.com/nisrulz/app-privacy-policy-generator/blob/master/dev-doc.md#development) -# Pull Requests +## Pull Requests I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request: @@ -45,11 +49,11 @@ I welcome and encourage all pull requests. It usually will take me within 24-48 4. Check for existing [issues](https://github.com/nisrulz/app-privacy-policy-generator/issues) first, before filing an issue. 5. Have fun! -# Author & Contributors +## Author & Contributors This project was created by [Nishant Srivastava](https://github.com/nisrulz/nisrulz.github.io#nishant-srivastava) but hopefully developed and maintained by many others. See the [the list of contributors here](https://github.com/nisrulz/app-privacy-policy-generator/graphs/contributors). -# Ways You Can Help/Support this project +## Ways You Can Help/Support this project - **Star** this repository and tell all your friends about it. - **Watch** for new releases to get an update if something happens. @@ -73,7 +77,7 @@ Thanks for your interest in this software :heart: App Privacy Policy GeneratorApp Privacy Policy GeneratorApp Privacy Policy Generator -### License +## License Copyright 2017-Present Nishant Srivastava diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..43999da --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "app-privacy-policy-generator", + "lockfileVersion": 2, + "requires": true, + "packages": {} +} diff --git a/public/images/third_party_logos/revenuecat.png b/public/images/third_party_logos/revenuecat.png new file mode 100644 index 0000000..38f9d6c Binary files /dev/null and b/public/images/third_party_logos/revenuecat.png differ diff --git a/src/includes/yaml/thirdpartyservices.yml b/src/includes/yaml/thirdpartyservices.yml index 9e05684..af70915 100644 --- a/src/includes/yaml/thirdpartyservices.yml +++ b/src/includes/yaml/thirdpartyservices.yml @@ -186,3 +186,10 @@ link: privacy: https://mixpanel.com/legal/privacy-policy/ terms: https://mixpanel.com/legal/terms-of-use/ +- name: RevenueCat + model: revenuecat + revenuecat: false + logo: images/third_party_logos/revenuecat.png + link: + privacy: https://www.revenuecat.com/privacy + terms: https://www.revenuecat.com/terms