Update stable.yml

This commit is contained in:
smartfridge 2022-11-22 17:14:50 +01:00 committed by GitHub
parent e6df2b0ecf
commit 69e5cdd9da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ name: Release build
on: on:
push: push:
branches: branches:
- stable - dev
env: env:
FORCE_COLOR: true FORCE_COLOR: true
@ -12,15 +12,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install pnpm - uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json
run: npm i -g pnpm && pnpm setup
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18
cache: "pnpm"
- name: Install Node dependencies - name: Install Node dependencies
run: pnpm install -g cargo-cp-artifact && pnpm install run: pnpm install -g cargo-cp-artifact && pnpm install
@ -47,15 +48,16 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install pnpm - uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json
run: npm i -g pnpm && pnpm setup && source /Users/runner/.bashrc
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18
cache: "pnpm"
- name: Install Node dependencies - name: Install Node dependencies
run: pnpm install -g cargo-cp-artifact && pnpm install run: pnpm install -g cargo-cp-artifact && pnpm install
@ -80,17 +82,17 @@ jobs:
build-windows: build-windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install pnpm - uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json
run: npm i -g pnpm && pnpm setup
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18
cache: "pnpm"
- name: Install Node dependencies - name: Install Node dependencies
run: pnpm install -g cargo-cp-artifact && pnpm install run: pnpm install -g cargo-cp-artifact && pnpm install
@ -109,23 +111,55 @@ jobs:
with: with:
name: ArmCordWindows name: ArmCordWindows
path: dist/ path: dist/
build-windowsOnARM:
runs-on: windows-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Checkout code
uses: actions/checkout@v2
- name: Set architecture
run: set npm_config_arch=arm64
- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json
- name: Install Node dependencies
run: pnpm install -g cargo-cp-artifact && pnpm install
- name: Install Electron-Builder
run: pnpm install -g electron-builder
- name: Build
run: npm run build && electron-builder --windows --arm64
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete unpacked builds
run: Remove-Item -LiteralPath ".\dist\win-arm64-unpacked" -Force -Recurse
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ArmCordWindowsArm64
path: dist/
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build-linux, build-mac, build-windows] needs: [build-linux, build-mac, build-windows, build-windowsOnARM]
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: ArmCordMac name: ArmCordMac
path: macos path: macos
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: ArmCordWindows name: ArmCordWindows
path: windows path: windows
- uses: actions/download-artifact@v2
with:
name: ArmCordWindowsArm64
path: windows
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: ArmCordLinux name: ArmCordLinux
@ -144,12 +178,6 @@ jobs:
run: | run: |
echo "::set-output name=releaseTag::$(git describe --tags --abbrev=0)" echo "::set-output name=releaseTag::$(git describe --tags --abbrev=0)"
- uses: dev-drprasad/delete-tag-and-release@v0.2.0
with:
delete_release: true
tag_name: v3.0.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release - name: Create Release
uses: actions/github-script@v2 uses: actions/github-script@v2
with: with: