Add deployment config

This commit is contained in:
lights0123 2020-10-06 15:23:59 -04:00
parent 9868fa3634
commit b400f43f6f
No known key found for this signature in database
GPG key ID: 28F315322E37972F
5 changed files with 34 additions and 4 deletions

View file

@ -91,6 +91,5 @@ jobs:
- name: install app dependencies
run: yarn
- name: Build
working-directory: ./web
run: |
yarn workspace web run generate

View file

@ -111,3 +111,34 @@ jobs:
name: `${name}_${version}_${arch}.AppImage`,
data: await fs.readFile(`${process.env.GITHUB_WORKSPACE}/desktop/src-tauri/target/release/bundle/appimage/n-link.AppImage`)
});
deploy-web:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ matrix.platform }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
ubuntu-18.04-yarn-
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 12
- name: install app dependencies
run: yarn
- name: Build
run: |
yarn workspace web run generate
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./web/dist
publish_branch: gh-pages
cname: n-link.lights0123.com

View file

@ -1,7 +1,7 @@
{
"name": "desktop",
"description": "Free, cross-platform, CX-II compatible computer linking program for the TI-Nspire",
"version": "0.1.4",
"version": "0.1.5",
"private": true,
"scripts": {
"lint": "vue-cli-service lint",

View file

@ -1,6 +1,6 @@
[package]
name = "n-link"
version = "0.1.4"
version = "0.1.5"
description = "Free, cross-platform, CX-II compatible computer linking program for the TI-Nspire"
authors = [ "Ben Schattinger <developer@lights0123.com>" ]
license = "GPL-3.0"

View file

@ -1,6 +1,6 @@
{
"name": "web",
"version": "1.0.0",
"version": "0.1.5",
"private": true,
"scripts": {
"dev": "nuxt-ts",