Skip to content

Commit

Permalink
Make release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aadnekar committed Dec 15, 2023
1 parent 5ad8e7f commit 53f30bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 42 deletions.
44 changes: 3 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,6 @@ on:
type: string # [Windows, macOS, Linux]

jobs:
# prepare:
# runs-on: ["${{ inputs.runner }}"]
# steps:
# - name: Fix Timezone on Windows
# if: runner.os == 'Windows'
# run: echo "This is windows, so timezone will be fixed." && tzutil /s "W. Europe Standard Time"
# - name: Remove dist/ on macOS ARM
# if: runner.os == 'macOS' && runner.arch == 'ARM64'
# run: echo "Running macOS ARM64" && node -v && node -p "process.arch" && rm -rf dist
# - name: Install libudev on Linux (Ubuntu)
# if: runner.os == 'Linux'
# run: sudo apt-get update && sudo apt-get install libudev-dev
build:
runs-on: ["${{ inputs.runner }}"]
steps:
Expand All @@ -29,6 +17,7 @@ jobs:
with:
node-version: 18
cache: 'npm'

- name: Install Dependencies
run: npm ci
- name: Run all checks
Expand All @@ -37,20 +26,7 @@ jobs:
run: npm test
- name: Build for Production
run: npm run build:prod
# - name: Upload build files
# uses: actions/upload-artifact@v3
# with:
# name: build_${{ inputs.runner }}
# path: dist/
# package:
# runs-on: ["${{ inputs.runner }}"]
# needs: [ build ]
# steps:
# - name: 'Download artifacts "build_${{ inputs.runner }}"'
# uses: actions/download-artifact@v3
# with:
# name: build_${{ inputs.runner }}
# path: dist/

- name: Run Electron Builder (Windows)
if: runner.os == 'Windows'
run: npx electron-builder -p never --windows nsis:x64
Expand All @@ -60,24 +36,10 @@ jobs:
- name: Run Electron Builder (Linux)
if: runner.os == 'Linux'
run: npx electron-builder -p never

- name: Publish built artifact
uses: actions/upload-artifact@v3
with:
name: nRF Connect for Desktop
path: "release/nrfconnect*"
retention-days: 7




## Should also create chache-task
# steps:
# - template: prepare.yml
# parameters: ${{parameters}}
# - task: Cache@2
# inputs:
# key: 'npm | "$(Agent.OS)" | package-lock.json'
# restoreKeys: |
# npm | "$(Agent.OS)"
# path: $(npm_config_cache)
# displayName: Cache npm
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nrfconnect",
"version": "4.3.0",
"version": "4.3.1-test",
"description": "nRF Connect for Desktop",
"repository": {
"type": "git",
Expand Down

0 comments on commit 53f30bf

Please sign in to comment.