Skip to content

Instantly share code, notes, and snippets.

View wendreof's full-sized avatar
💭
🤘🏼

Wendreo Fernandes wendreof

💭
🤘🏼
View GitHub Profile
@wendreof
wendreof / build.gradle
Created September 25, 2021 16:42
7-How-to-Safely-Build-Assigned-Flutter-App-with-GitHub-Actions
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
@wendreof
wendreof / ci-cd.yml
Created September 25, 2021 15:43
6-How-to-Safely-Build-Assigned-App-with-GitHub-Actions
#Steps 1, 2 and 3 configurations
# Make appbundle downloadable
- name: Upload artefato
uses: actions/upload-artifact@v2
with:
name: appbundle
path: build/app/outputs/bundle/release
@wendreof
wendreof / ci-cd.yml
Last active September 25, 2021 19:22
5-How-to-Safely-Build-Assigned-App-with-GitHub-Actions
# Steps 1 and 2 configurations...
# Decoding base64 key into a file
- run: echo "${{ secrets.KEYSTORE2 }}" | base64 --decode > android/app/key.jks
# Get dependencies and make assigned appbundle
- run: |
flutter pub get
flutter build appbundle
@wendreof
wendreof / keybase64.txt
Created September 25, 2021 15:11
4How-to-Safely-Build-Assigned-App-with-GitHub-Actions
base64 key.jks > keybase64.txt
@wendreof
wendreof / ci-cd.yml
Created September 25, 2021 15:04
3-How-to-Safely-Build-Assigned-App-with-GitHub-Actions
#step 2 configurations...
jobs:
flutter_test:
name: Run Flutter assigned build appbundle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
@wendreof
wendreof / ci-cd.yml
Created September 25, 2021 14:57
2-How-to-Safely-Build-Assigned-App-with-GitHub-Actions
name: CI/CD
on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
@wendreof
wendreof / build.gradle
Last active September 25, 2021 19:22
1-How-to-Safely-Build-Assigned-App-with-GitHub-Actions
//other settings...
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
//other settings...
@wendreof
wendreof / gitrm--cached.txt
Last active November 20, 2019 04:17
git rm --cached
git rm --cached node_modules/
@wendreof
wendreof / .gitignore
Last active September 25, 2021 19:36
.gitignore node_modules and log files
### Node ###
node_modules/
# Dependency directories
*.log
@wendreof
wendreof / docker-compose.yml
Created August 31, 2019 12:41
Docker Compose for TypeScript, and Mongo Environment
version: "3"
services:
api:
image: wendreof/api-ts
ports:
- "3050:3050"
links:
- link-db
link-db:
image: tutum/mongodb