mirror of
https://github.com/lights0123/n-link.git
synced 2025-01-18 13:58:04 +00:00
Add deployment config
This commit is contained in:
parent
9868fa3634
commit
b400f43f6f
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -91,6 +91,5 @@ jobs:
|
||||||
- name: install app dependencies
|
- name: install app dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ./web
|
|
||||||
run: |
|
run: |
|
||||||
yarn workspace web run generate
|
yarn workspace web run generate
|
||||||
|
|
31
.github/workflows/release.yml
vendored
31
.github/workflows/release.yml
vendored
|
@ -111,3 +111,34 @@ jobs:
|
||||||
name: `${name}_${version}_${arch}.AppImage`,
|
name: `${name}_${version}_${arch}.AppImage`,
|
||||||
data: await fs.readFile(`${process.env.GITHUB_WORKSPACE}/desktop/src-tauri/target/release/bundle/appimage/n-link.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
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "desktop",
|
"name": "desktop",
|
||||||
"description": "Free, cross-platform, CX-II compatible computer linking program for the TI-Nspire",
|
"description": "Free, cross-platform, CX-II compatible computer linking program for the TI-Nspire",
|
||||||
"version": "0.1.4",
|
"version": "0.1.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "vue-cli-service lint",
|
"lint": "vue-cli-service lint",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "n-link"
|
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"
|
description = "Free, cross-platform, CX-II compatible computer linking program for the TI-Nspire"
|
||||||
authors = [ "Ben Schattinger <developer@lights0123.com>" ]
|
authors = [ "Ben Schattinger <developer@lights0123.com>" ]
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "web",
|
"name": "web",
|
||||||
"version": "1.0.0",
|
"version": "0.1.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt-ts",
|
"dev": "nuxt-ts",
|
||||||
|
|
Loading…
Reference in a new issue