Update release.yml

This commit is contained in:
Tom (plebeius.eth)
2025-03-18 15:37:23 +01:00
parent 095a64dea5
commit e3a722f1d5
+7 -7
View File
@@ -11,7 +11,7 @@ on:
jobs:
linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
@@ -34,7 +34,7 @@ jobs:
- run: node scripts/release-body > release-body.txt
- uses: ncipollo/release-action@v1
with:
artifacts: 'dist/plebchan*.AppImage,dist/plebchan-html*.zip'
artifacts: 'dist/plebchan-linux*.AppImage,dist/plebchan-html*.zip'
token: ${{ secrets.GITHUB_TOKEN }}
replacesArtifacts: true
bodyFile: "release-body.txt"
@@ -69,7 +69,7 @@ jobs:
- run: node scripts/release-body > release-body.txt
- uses: ncipollo/release-action@v1
with:
artifacts: 'dist/plebchan*.dmg'
artifacts: 'dist/plebchan-mac*.dmg'
token: ${{ secrets.GITHUB_TOKEN }}
replacesArtifacts: true
bodyFile: "release-body.txt"
@@ -88,7 +88,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 18
- run: yarn install --frozen-lockfile
- run: yarn install --frozen-lockfile --network-timeout 100000 --network-concurrency 1
- run: yarn build
- run: yarn electron:build:windows
- run: dir dist
@@ -97,7 +97,7 @@ jobs:
- run: node scripts/release-body > release-body.txt
- uses: ncipollo/release-action@v1
with:
artifacts: 'dist/plebchan*.exe'
artifacts: 'dist/plebchan-windows*.exe'
token: ${{ secrets.GITHUB_TOKEN }}
replacesArtifacts: true
bodyFile: "release-body.txt"
@@ -142,14 +142,14 @@ jobs:
# to create keystore: keytool -genkey -v -keystore plebbit.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias release
- run: cd android/app/build/outputs/apk/release && apksigner sign --ks ../../../../../plebbit.keystore --ks-pass pass:${{ secrets.PLEBBIT_REACT_KEYSTORE_PASSWORD }} --ks-key-alias release --out app-release-signed.apk app-release-unsigned-zip.apk
# move apk to dist folder
- run: mkdir -p dist && mv android/app/build/outputs/apk/release/app-release-signed.apk dist/plebchan-$(node -e "console.log(require('./package.json').version)").apk
- run: mkdir -p dist && mv android/app/build/outputs/apk/release/app-release-signed.apk dist/plebchan-android-$(node -e "console.log(require('./package.json').version)").apk
- run: ls dist
# publish version release
- run: node scripts/release-body > release-body.txt
- uses: ncipollo/release-action@v1
with:
artifacts: 'dist/plebchan*.apk'
artifacts: 'dist/plebchan-android*.apk'
token: ${{ secrets.GITHUB_TOKEN }}
replacesArtifacts: true
bodyFile: "release-body.txt"