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 - 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: