Replace the version number for dev builds

This commit is contained in:
Alyxia Sother 2022-04-22 20:24:56 +02:00
parent 41933e3c4f
commit 6876cc0ec1
No known key found for this signature in database
GPG key ID: 355968D14144B739

View file

@ -25,6 +25,11 @@ jobs:
- name: Install Electron-Builder
run: npm install -g electron-builder
- name: Replace the version number
run: cat src/utils.ts | sed -e 's/[[:digit:]]\.[[:digit:]]\.[[:digit:]]/DEV/g' | tee src/utils.ts > /dev/null
- run: cat src/utils.ts
- name: Build
run: npm run build && electron-builder --linux zip && electron-builder --arm64 --linux zip
@ -56,6 +61,11 @@ jobs:
- name: Install Electron-Builder
run: npm install -g electron-builder
- name: Replace the version number
run: cat src/utils.ts | sed -e 's/[[:digit:]]\.[[:digit:]]\.[[:digit:]]/DEV/g' | tee src/utils.ts > /dev/null
- run: cat src/utils.ts
- name: Build
run: npm run build && electron-builder --macos zip
env:
@ -84,6 +94,9 @@ jobs:
- name: Install Electron-Builder
run: npm install -g electron-builder
- name: Replace the version number
run: (Get-Content src/utils.ts) -replace "\d\.\d\.\d", "DEV" | Out-File src/utils.ts
- name: Build
run: npm run build && electron-builder --windows zip
@ -121,23 +134,20 @@ jobs:
with:
name: ArmCordLinuxArm64.zip
path: linux
- run: |
ls
ls windows
ls macos
ls linux
- name: Get some values needed for the release
id: vars
shell: bash
run: |
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- uses: dev-drprasad/delete-tag-and-release@v0.2.0
with:
delete_release: true
tag_name: devbuild
repo: ArmCord/ArmCord
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create the release
uses: softprops/action-gh-release@v1
env: