-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.2.0' into main
- Loading branch information
Showing
12 changed files
with
3,857 additions
and
41 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,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 }} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,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); | ||
} | ||
} | ||
}); |
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,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)) |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.