2022-11-22 16:25:46 +00:00
|
|
|
name: Dev build
|
2022-12-31 14:53:23 +00:00
|
|
|
on:
|
2024-06-14 12:57:34 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
2022-11-22 16:25:46 +00:00
|
|
|
|
|
|
|
env:
|
2024-06-14 12:57:34 +00:00
|
|
|
FORCE_COLOR: true
|
2022-11-22 16:25:46 +00:00
|
|
|
|
|
|
|
jobs:
|
2024-06-14 12:57:34 +00:00
|
|
|
build-linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
|
|
|
|
|
|
- name: Use Node.js 22
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 22
|
|
|
|
cache: "pnpm"
|
|
|
|
|
|
|
|
- name: Install Node dependencies
|
|
|
|
run: pnpm i
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: pnpm run build && pnpm electron-builder --linux zip
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: ArmCordLinux
|
|
|
|
path: dist/armcord-*.zip
|
2024-06-15 10:27:22 +00:00
|
|
|
build-snap:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
|
|
|
|
|
|
- name: Use Node.js 22
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 22
|
|
|
|
cache: "pnpm"
|
|
|
|
|
|
|
|
- name: Install Node dependencies
|
|
|
|
run: pnpm i
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: pnpm run build && pnpm electron-builder --linux snap --config.snap.grade=devel
|
|
|
|
|
|
|
|
- uses: snapcore/action-publish@v1
|
|
|
|
env:
|
|
|
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
|
|
|
|
with:
|
2024-06-15 10:39:55 +00:00
|
|
|
snap: dist/armcord_3.3.0_amd64.snap
|
2024-06-15 10:27:22 +00:00
|
|
|
release: edge
|
2024-06-14 12:57:34 +00:00
|
|
|
build-linux-arm:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
|
|
|
|
|
|
- name: Use Node.js 22
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 22
|
|
|
|
cache: "pnpm"
|
|
|
|
|
|
|
|
- name: Install Node dependencies
|
|
|
|
run: pnpm i
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: pnpm run build && pnpm electron-builder --arm64 --linux zip
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: ArmCordLinuxArm64
|
|
|
|
path: dist/armcord-*-arm64.zip
|
|
|
|
|
|
|
|
build-windows:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
|
|
|
|
|
|
- name: Use Node.js 22
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 22
|
|
|
|
cache: "pnpm"
|
|
|
|
|
|
|
|
- name: Install Node dependencies
|
|
|
|
run: pnpm i
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: pnpm run build && pnpm electron-builder --windows zip
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: ArmCordWindows
|
|
|
|
path: dist/armcord-3.3.0-win.zip
|
|
|
|
|
|
|
|
build-windows-arm:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: "22"
|
|
|
|
|
|
|
|
- name: Set architecture
|
|
|
|
run: set npm_config_arch=arm64
|
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v4 # Install pnpm using packageManager key in package.json
|
|
|
|
|
|
|
|
- name: Install Node dependencies
|
|
|
|
run: pnpm i
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: pnpm run build && pnpm electron-builder --windows zip --arm64
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: ArmCordWindowsArm64
|
|
|
|
path: dist\armcord-3.3.0-arm64-win.zip
|
|
|
|
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: [build-linux, build-windows, build-windows-arm, build-linux-arm]
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
path: release-files
|
|
|
|
|
|
|
|
- name: Get short commit hash
|
|
|
|
id: vars
|
|
|
|
run: echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
- run: gh release delete devbuild -y --cleanup-tag
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Create Release
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
bodyFile: .github/release.md
|
2024-06-15 09:45:57 +00:00
|
|
|
generateReleaseNotes: false
|
2024-06-14 12:57:34 +00:00
|
|
|
name: Dev Build ${{ steps.vars.outputs.sha_short }}
|
|
|
|
prerelease: true
|
|
|
|
tag: devbuild
|
|
|
|
artifacts: "release-files/**/*.zip"
|