44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
|
|
- name: Run Electron Builder
|
|
uses: samuelmeuli/action-electron-builder@e4b12cd06ddf023422f1ac4e39632bd76f6e6928
|
|
with:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
RELEASE: true
|
|
|
|
- name: Update AUR package
|
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
run: |
|
|
mkdir -p -m 700 ~/.ssh
|
|
echo $SSH_KEY > ~/.ssh/aur
|
|
echo $SSH_PUB_KEY > ~/.ssh/aur.pub
|
|
chmod 600 ~/.ssh/*
|
|
|
|
export GIT_SSH_COMMAND="ssh -i ~/.ssh/aur"
|
|
|
|
sudo ./scripts/ci/install_makepkg.sh
|
|
./scripts/ci/aur_bump.sh
|
|
env:
|
|
SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
|
|
SSH_PUB_KEY: ${{ secrets.AUR_SSH_PUB_KEY }}
|