Skip to content

Commit

Permalink
Try releases via Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
janosrusiczki committed Jun 25, 2020
1 parent e8a21c7 commit c5144e7
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*.log
coverage/
dist/
gh-pages/
node_modules/
23 changes: 17 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,23 @@ after_success:
- bash <(curl -s https://codecov.io/bash)

before_deploy:
- yarn build
- yarn gh-pages

deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: dist
on:
branch: master
- provider: releases
skip_cleanup: true
draft: true
api_key: $GITHUB_TOKEN
file:
- "dist/vue-it-bigger.min.css"
- "dist/vue-it-bigger.min.js"
- "dist/vue-it-bigger.min.js.map"
on:
tags: true
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: gh-pages
on:
branch: master
6 changes: 4 additions & 2 deletions build/webpack.gh-pages.conf.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const path = require('path')
const webpack = require('webpack')
const config = require('./webpack.base.conf')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const webpack = require('webpack')
const path = require('path')

config.output.path = path.resolve(__dirname, '../gh-pages')

config.devtool = '#eval-source-map'

Expand Down
11 changes: 8 additions & 3 deletions build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,14 @@ config.optimization = {
}

config.plugins = (config.plugins || []).concat([
new CopyWebpackPlugin([
{ from: 'src/vetur', to: 'vetur' }
]),
new CopyWebpackPlugin({
patterns: [
{
from: 'src/vetur',
to: 'vetur',
}
]
}),

new MiniCssExtractPlugin({
filename: 'vue-it-bigger.min.css'
Expand Down

0 comments on commit c5144e7

Please sign in to comment.