mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Replace the version number for dev builds
This commit is contained in:
parent
41933e3c4f
commit
6876cc0ec1
1 changed files with 16 additions and 6 deletions
22
.github/workflows/dev.yml
vendored
22
.github/workflows/dev.yml
vendored
|
@ -25,6 +25,11 @@ jobs:
|
||||||
- name: Install Electron-Builder
|
- name: Install Electron-Builder
|
||||||
run: npm install -g 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
|
- name: Build
|
||||||
run: npm run build && electron-builder --linux zip && electron-builder --arm64 --linux zip
|
run: npm run build && electron-builder --linux zip && electron-builder --arm64 --linux zip
|
||||||
|
|
||||||
|
@ -56,6 +61,11 @@ jobs:
|
||||||
- name: Install Electron-Builder
|
- name: Install Electron-Builder
|
||||||
run: npm install -g 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
|
- name: Build
|
||||||
run: npm run build && electron-builder --macos zip
|
run: npm run build && electron-builder --macos zip
|
||||||
env:
|
env:
|
||||||
|
@ -84,6 +94,9 @@ jobs:
|
||||||
- name: Install Electron-Builder
|
- name: Install Electron-Builder
|
||||||
run: npm install -g 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
|
- name: Build
|
||||||
run: npm run build && electron-builder --windows zip
|
run: npm run build && electron-builder --windows zip
|
||||||
|
|
||||||
|
@ -121,23 +134,20 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: ArmCordLinuxArm64.zip
|
name: ArmCordLinuxArm64.zip
|
||||||
path: linux
|
path: linux
|
||||||
- run: |
|
|
||||||
ls
|
|
||||||
ls windows
|
|
||||||
ls macos
|
|
||||||
ls linux
|
|
||||||
- name: Get some values needed for the release
|
- name: Get some values needed for the release
|
||||||
id: vars
|
id: vars
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||||
|
|
||||||
- uses: dev-drprasad/delete-tag-and-release@v0.2.0
|
- uses: dev-drprasad/delete-tag-and-release@v0.2.0
|
||||||
with:
|
with:
|
||||||
delete_release: true
|
delete_release: true
|
||||||
tag_name: devbuild
|
tag_name: devbuild
|
||||||
repo: ArmCord/ArmCord
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Create the release
|
- name: Create the release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in a new issue