From b400f43f6f3316bff69d66056b0da0ed23240b42 Mon Sep 17 00:00:00 2001 From: lights0123 Date: Tue, 6 Oct 2020 15:23:59 -0400 Subject: [PATCH] Add deployment config --- .github/workflows/ci.yml | 1 - .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ desktop/package.json | 2 +- desktop/src-tauri/Cargo.toml | 2 +- web/package.json | 2 +- 5 files changed, 34 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54232fd..7d09842 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,6 +91,5 @@ jobs: - name: install app dependencies run: yarn - name: Build - working-directory: ./web run: | yarn workspace web run generate diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 089ba08..467c84d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/desktop/package.json b/desktop/package.json index 8ca45c7..c155a45 100644 --- a/desktop/package.json +++ b/desktop/package.json @@ -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", diff --git a/desktop/src-tauri/Cargo.toml b/desktop/src-tauri/Cargo.toml index 719b25d..694f80d 100644 --- a/desktop/src-tauri/Cargo.toml +++ b/desktop/src-tauri/Cargo.toml @@ -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 " ] license = "GPL-3.0" diff --git a/web/package.json b/web/package.json index 62905fb..5a2ccaf 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "web", - "version": "1.0.0", + "version": "0.1.5", "private": true, "scripts": { "dev": "nuxt-ts",