Github Action
This commit is contained in:
34
.github/workflows/build-and-release.yml
vendored
34
.github/workflows/build-and-release.yml
vendored
@@ -2,9 +2,9 @@ name: Build and Release bsky-desktop
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ $default-branch ]
|
branches: [$default-branch]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [$default-branch]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
@@ -124,11 +124,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout git repo
|
- name: Checkout git repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get app version
|
- name: Get app version
|
||||||
id: version
|
id: version
|
||||||
uses: pchynoweth/action-get-npm-version@1.1.1
|
uses: pchynoweth/action-get-npm-version@1.1.1
|
||||||
|
|
||||||
- name: Download Linux Artifacts
|
- name: Download Linux Artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -146,7 +146,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: macos-artifacts
|
name: macos-artifacts
|
||||||
path: dist/macos
|
path: dist/macos
|
||||||
|
|
||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -R dist
|
run: ls -R dist
|
||||||
|
|
||||||
@@ -166,4 +166,26 @@ jobs:
|
|||||||
dist/linux/*.AppImage
|
dist/linux/*.AppImage
|
||||||
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: 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