43
.github/workflows/build-and-release.yml
vendored
43
.github/workflows/build-and-release.yml
vendored
@@ -46,6 +46,16 @@ jobs:
|
|||||||
dist/*.AppImage
|
dist/*.AppImage
|
||||||
dist/latest*.yml
|
dist/latest*.yml
|
||||||
|
|
||||||
|
- name: Generate checksum
|
||||||
|
run: |
|
||||||
|
sha256sum dist/*.AppImage > sha256sum.txt
|
||||||
|
|
||||||
|
- name: Upload checksums
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: checksums
|
||||||
|
path: sha256sum.txt
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
name: Build bsky-desktop (Windows)
|
name: Build bsky-desktop (Windows)
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
@@ -167,3 +177,36 @@ jobs:
|
|||||||
dist/windows/*.exe
|
dist/windows/*.exe
|
||||||
dist/macos/*.dmg
|
dist/macos/*.dmg
|
||||||
dist/combined.yml
|
dist/combined.yml
|
||||||
|
|
||||||
|
aur:
|
||||||
|
name: Publish to AUR
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: release
|
||||||
|
env:
|
||||||
|
AUR_TOKEN: ${{ secrets.AUR_TOKEN }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout git repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Download checksums
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: checksums
|
||||||
|
path: ./sha256sum.txt
|
||||||
|
|
||||||
|
- name: Extract checksum from sha256sum.txt
|
||||||
|
run: |
|
||||||
|
new_checksum=$(awk 'NR==1 { print $1 }' ./sha256sum.txt)
|
||||||
|
sed -i "s|sha256sums=('SKIP' 'SKIP')|sha256sums=('$new_checksum' 'SKIP')|" ./build/PKGBUILD
|
||||||
|
|
||||||
|
- name: Publish AUR package
|
||||||
|
uses: KSXGitHub/github-actions-deploy-aur@3.0.1
|
||||||
|
with:
|
||||||
|
pkgname: bskydesktop
|
||||||
|
pkgbuild: ./build/PKGBUILD
|
||||||
|
commit_username: ${{ secrets.AUR_USERNAME }}
|
||||||
|
commit_email: ${{ secrets.AUR_EMAIL }}
|
||||||
|
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||||
|
commit_message: New Version
|
||||||
|
ssh_keyscan_types: rsa,ecdsa,ed25519
|
||||||
|
Reference in New Issue
Block a user