deploy gh-pages

This commit is contained in:
2020-12-26 09:02:38 +03:00
parent 6d605cd325
commit 2deb49bca5
4 changed files with 102 additions and 66 deletions

37
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,37 @@
# This is a basic workflow to help you get started with Actions
name: Deploy to pages
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
ACCESS_TOKEN: ${{ secrets.GIT_TOKEN_V1 }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch

View File

@ -1,12 +1,10 @@
# This is a basic workflow to help you get started with Actions # This is a basic workflow to help you get started with Actions
name: CI name: Lint pull request
# Controls when the action will run. # Controls when the action will run.
on: on:
# Triggers the workflow on push or pull request events but only for the master branch # Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request: pull_request:
branches: [ master ] branches: [ master ]

View File

@ -1,64 +1,65 @@
{ {
"name": "tracker", "name": "tracker",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@devexperts/remote-data-ts": "^2.0.4", "@devexperts/remote-data-ts": "^2.0.4",
"@material-ui/core": "^4.11.0", "@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1", "@material-ui/icons": "^4.9.1",
"@most/adapter": "^1.0.0", "@most/adapter": "^1.0.0",
"@most/core": "^1.6.1", "@most/core": "^1.6.1",
"@most/scheduler": "^1.3.0", "@most/scheduler": "^1.3.0",
"@most/types": "^1.1.0", "@most/types": "^1.1.0",
"@types/uuid": "^8.3.0", "@types/uuid": "^8.3.0",
"axios": "^0.21.0", "axios": "^0.21.0",
"date-fns": "^2.16.1", "date-fns": "^2.16.1",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"fp-ts": "^2.8.5", "fp-ts": "^2.8.5",
"lodash": "^4.17.20", "lodash": "^4.17.20",
"react": "^17.0.1", "react": "^17.0.1",
"react-dom": "^17.0.1", "react-dom": "^17.0.1",
"react-router-dom": "^5.2.0", "react-router-dom": "^5.2.0",
"react-scripts": "4.0.0", "react-scripts": "4.0.0",
"ts-loader": "^8.0.7", "ts-loader": "^8.0.7",
"typescript": "^4.0.3" "typescript": "^4.0.3"
}, },
"scripts": { "scripts": {
"start": "webpack serve", "start": "webpack serve",
"dev": "webpack serve --open false", "dev": "webpack serve --open false",
"build": "webpack --mode=production", "build": "webpack --mode=production",
"eslint": "eslint -c .eslintrc.json src --fix", "eslint": "eslint -c .eslintrc.json src --fix",
"tsc": "tsc --p ./tsconfig.json", "tsc": "tsc --p ./tsconfig.json",
"lint": "npm run eslint && npm run tsc", "lint": "npm run eslint && npm run tsc",
"test": "jest" "test": "jest"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.3", "@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1", "@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.12.1", "@babel/preset-typescript": "^7.12.1",
"@types/jest": "^26.0.15", "@types/jest": "^26.0.15",
"@types/lodash": "^4.14.165", "@types/lodash": "^4.14.165",
"@types/node": "^12.19.1", "@types/node": "^12.19.1",
"@types/react": "^16.9.53", "@types/react": "^16.9.53",
"@types/react-dom": "^16.9.8", "@types/react-dom": "^16.9.8",
"@types/react-router-dom": "^5.1.6", "@types/react-router-dom": "^5.1.6",
"@typescript-eslint/eslint-plugin": "^4.6.0", "@typescript-eslint/eslint-plugin": "^4.6.0",
"@typescript-eslint/parser": "^4.6.0", "@typescript-eslint/parser": "^4.6.0",
"babel-jest": "^26.6.1", "babel-jest": "^26.6.1",
"clean-webpack-plugin": "^3.0.0", "clean-webpack-plugin": "^3.0.0",
"css-loader": "^5.0.0", "css-loader": "^5.0.0",
"eslint": "^7.12.1", "eslint": "^7.12.1",
"eslint-config-prettier": "^6.15.0", "eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.4", "eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.21.5", "eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-react-hooks": "^4.2.0",
"html-webpack-plugin": "^4.5.0", "gh-pages": "^3.1.0",
"mini-css-extract-plugin": "^1.2.1", "html-webpack-plugin": "^4.5.0",
"prettier": "^2.1.2", "mini-css-extract-plugin": "^1.2.1",
"sass": "^1.28.0", "prettier": "^2.1.2",
"sass-loader": "^10.0.4", "sass": "^1.28.0",
"webpack": "^5.3.2", "sass-loader": "^10.0.4",
"webpack-cli": "^4.1.0", "webpack": "^5.3.2",
"webpack-dev-server": "^3.11.0" "webpack-cli": "^4.1.0",
} "webpack-dev-server": "^3.11.0"
}
} }

View File

@ -4,7 +4,7 @@ import QueueTable from '../queue-table/QueueTable';
const QueuesPage: React.FC = () => { const QueuesPage: React.FC = () => {
return ( return (
<div> <div>
<div>Queues Page</div> <div>Queues Page (d)</div>
<QueueTable /> <QueueTable />
</div> </div>
); );