Remove git hooks and Travis CI

This commit is contained in:
Dominik Korsa 2021-01-20 16:05:38 +01:00
parent 80a3ced821
commit 9500230744
No known key found for this signature in database
GPG key ID: 546F986F71A6FE6E
3 changed files with 26 additions and 35 deletions

26
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Deploy
on:
push:
branches: [ develop ]
jobs:
lint-and-build:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- run: npm run build
- run: npm run sitemap
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build
CLEAN: true

View file

@ -1,22 +0,0 @@
language: node_js
node_js:
- "node" # Latest stable
deploy:
provider: pages
skip-cleanup: true
target-branch: master
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
local-dir: dist
on:
branch: develop
branches:
except:
master
script:
- npm run lint
- npm run build
- npm run sitemap

View file

@ -38,18 +38,5 @@
"sass-loader": "^10.0.2",
"vue-cli-plugin-sitemap": "^2.3.0",
"vue-template-compiler": "^2.6.12"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.js": [
"vue-cli-service lint",
"git add"
],
"*.vue": [
"vue-cli-service lint",
"git add"
]
}
}