From 63bcb03abd5e5f969607674f006bd6dcbb928d6f Mon Sep 17 00:00:00 2001 From: Cutls Date: Tue, 13 Apr 2021 14:26:29 +0900 Subject: [PATCH 1/3] Use GitHub Actions to create Windows assets --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..0433469e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: TheDesk Build + +on: + release: + types: + - created + +jobs: + build: + + runs-on: windows-latest + + strategy: + matrix: + node-version: [14.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Build + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: cd app + - run: yarn + - run: yarn build:all + - run: cd ../ + - name: Upload Release exe Asset + id: upload-release-exe + - uses: shogo82148/actions-upload-release-asset@v1 + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: "*.exe" + - name: Upload Release appx Asset + id: upload-release-appx + - uses: shogo82148/actions-upload-release-asset@v1 + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: "*.appx" From f27737158c69d8383da0b201d3fb8f6f21ea97dc Mon Sep 17 00:00:00 2001 From: Cutls Date: Tue, 13 Apr 2021 14:30:37 +0900 Subject: [PATCH 2/3] fix --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0433469e..63686429 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,23 +20,23 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Build + - name: Setup uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - run: cd app - - run: yarn - - run: yarn build:all - - run: cd ../ + - name: Dependency + run: cd app && yarn + - name: Build + run: yarn build:all && cd ../ - name: Upload Release exe Asset id: upload-release-exe - - uses: shogo82148/actions-upload-release-asset@v1 + uses: shogo82148/actions-upload-release-asset@v1 with: upload_url: ${{ github.event.release.upload_url }} asset_path: "*.exe" - name: Upload Release appx Asset id: upload-release-appx - - uses: shogo82148/actions-upload-release-asset@v1 + uses: shogo82148/actions-upload-release-asset@v1 with: upload_url: ${{ github.event.release.upload_url }} asset_path: "*.appx" From 93b5b98f23273672960f4e572f3f547054d59fad Mon Sep 17 00:00:00 2001 From: Cutls Date: Tue, 13 Apr 2021 14:31:52 +0900 Subject: [PATCH 3/3] Update build.yml --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 63686429..ce6790a2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,8 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 - name: Setup uses: actions/setup-node@v2 with: