Browse Source

fix gh-pages

fix gh-pages

fix readme

fix gh-pages
master
syui 2 years ago
parent
commit
37b752ca09
No known key found for this signature in database GPG Key ID: ED2A0F5F1DA25512
  1. 32
      .github/workflows/gh-pages.yml
  2. 3
      .gitignore
  3. BIN
      public-vue/img/01.png
  4. BIN
      public-vue/img/02.png
  5. BIN
      public-vue/img/03.png
  6. 2
      readme.md
  7. 2
      webpack.config.js

32
.github/workflows/gh-pages.yml

@ -0,0 +1,32 @@
name: github pages
on:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 12
ref: src
submodules: true
- run: yarn install
- name: Build
env:
TZ: "Asia/Tokyo"
run: |
yarn build
cp -rf ./img ./public
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public

3
.gitignore

@ -1,3 +1,6 @@
.DS_Store
yarn.lock
node_modules
gh-pages
gh-pages.pub
public

BIN
public-vue/img/01.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

BIN
public-vue/img/02.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

BIN
public-vue/img/03.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

2
readme.md

@ -2,6 +2,8 @@
This simple image viewer pages created with vue.js.
demo : https://syui.github.io/comic.page
```sh
$ yarn install
$ yarn dev

2
webpack.config.js

@ -9,7 +9,7 @@ module.exports = {
watch: process.env.WEBPACK_WATCH === 'true',
entry: './src/main.js',
output: {
path: path.resolve(__dirname, './public-vue'),
path: path.resolve(__dirname, './public'),
publicPath: '',
filename: 'build.js'
},

Loading…
Cancel
Save