Skip to content

Commit

Permalink
Merge branch 'release/1.2.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
deandreamatias committed Dec 28, 2020
2 parents e38569f + b87e0a2 commit 51ff748
Show file tree
Hide file tree
Showing 12 changed files with 3,857 additions and 41 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy_app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy app
on:
create:
tags:
-
jobs:
deploy-app:
name: deploy app
runs-on: ubuntu-latest
steps:
- name: configure enviroment
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
- uses: actions/setup-java@v1
with:
java-version: '8.x'
- uses: subosito/flutter-action@v1
with:
channel: 'beta'
- name: get flutter dependencies
run: flutter pub get
- name: get node dependencies
run: npm install
- name: enable flutter web
run: flutter config --enable-web
- name: verify assets
run: npm run compare
- name: code analyze
run: flutter analyze
- name: build web app
run: flutter build web
- name: minimize assets
run: npm run minimize
- name: deploy to web
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting --project deandreamatias-portoflio
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
.svn/
lib/config/env.dart
**.htaccess
.fvm/*

# IntelliJ related
*.iml
Expand Down Expand Up @@ -95,3 +96,4 @@ unlinked_spec.ds
.runtimeconfig.json
.firebase/
**/.well-known/brave-rewards-verification.txt
lib/generated_plugin_registrant.dart
9 changes: 0 additions & 9 deletions .tool/build.sh

This file was deleted.

3 changes: 0 additions & 3 deletions .tool/deploy.sh

This file was deleted.

80 changes: 80 additions & 0 deletions .tool/minimize.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
const minify = require('@node-minify/core');
const babelMinify = require('@node-minify/babel-minify');
const cleanCSS = require('@node-minify/clean-css');
const htmlMinifier = require('@node-minify/html-minifier');
const jsonminify = require('@node-minify/jsonminify');

minify({
compressor: babelMinify,
input: 'build/web/flutter_service_worker.js',
output: 'build/web/flutter_service_worker.js',
callback: function (err, min) {
if (err) {
console.log('Error to minify flutter_service_worker.js. ', err);
}
}
});

minify({
compressor: cleanCSS,
input: 'build/web/style.css',
output: 'build/web/style.css',
callback: function (err, min) {
if (err) {
console.log('Error to minify style.css. ', err);
}
}
});

minify({
compressor: htmlMinifier,
input: 'build/web/404.html',
output: 'build/web/404.html',
callback: function (err, min) {
if (err) {
console.log('Error to minify 404.html. ', err);
}
}
});

minify({
compressor: htmlMinifier,
input: 'build/web/index.html',
output: 'build/web/index.html',
callback: function (err, min) {
if (err) {
console.log('Error to minify index.html. ', err);
}
}
});

minify({
compressor: jsonminify,
input: 'build/web/assets/assets/i18n/en.json',
output: 'build/web/assets/assets/i18n/en.json',
callback: function (err, min) {
if (err) {
console.log('Error to minify en.json. ', err);
}
}
});
minify({
compressor: jsonminify,
input: 'build/web/assets/assets/i18n/es.json',
output: 'build/web/assets/assets/i18n/es.json',
callback: function (err, min) {
if (err) {
console.log('Error to minify es.json. ', err);
}
}
});
minify({
compressor: jsonminify,
input: 'build/web/assets/assets/i18n/pt.json',
output: 'build/web/assets/assets/i18n/pt.json',
callback: function (err, min) {
if (err) {
console.log('Error to minify pt.json. ', err);
}
}
});
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.2.0](https://github.com/deandreamatias/portfolio/compare/v1.1.0...v1.2.0) (2020-12-28)


### Features

* Add twitter meta card support ([af6f4e3](https://github.com/deandreamatias/portfolio/commit/af6f4e357aa515c51eb5173057111d45773aeed7))
* Increase cache assets time ([d09bc05](https://github.com/deandreamatias/portfolio/commit/d09bc0546067b20ac30bb318fe24f79480ed3932))
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## Personal portfolio
# Personal portfolio

[![Releases](https://img.shields.io/github/v/release/deandreamatias/portfolio)](https://github.com/deandreamatias/portfolio/releases)
[![Website online](https://img.shields.io/website?up_message=online&url=https%3A%2F%2Fdeandreamatias.com)](https://deandreamatias.com)
[![Paypal donate](https://img.shields.io/badge/paypal-donate-blue)](https://paypal.me/deandreamatias)

### About the project
## About the project

I made this portfolio to experiment with Flutter web and have a place to share the references link to my podcast.

Expand Down
4 changes: 2 additions & 2 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"headers": [
{
"key": "Cache-Control",
"value": "max-age=7200"
"value": "max-age=2592000"
}
]
},
Expand All @@ -52,7 +52,7 @@
"headers": [
{
"key": "Cache-Control",
"value": "max-age=7200"
"value": "max-age=2592000"
}
]
},
Expand Down
18 changes: 0 additions & 18 deletions lib/generated_plugin_registrant.dart

This file was deleted.

Loading

0 comments on commit 51ff748

Please sign in to comment.