project-client/.github/workflows/release.yml

45 lines
1.2 KiB
YAML
Raw Normal View History

2023-04-06 03:14:28 +00:00
name: Release
2023-04-03 23:58:24 +00:00
2023-04-06 03:14:28 +00:00
on:
2023-04-10 17:38:32 +00:00
push:
tags:
- v*
2023-04-03 23:58:24 +00:00
jobs:
2023-04-10 17:38:32 +00:00
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: |
2023-04-11 00:12:10 +00:00
mkdir -p -m 700 ~/.ssh
2023-04-10 17:38:32 +00:00
echo $SSH_KEY > ~/.ssh/aur
echo $SSH_PUB_KEY > ~/.ssh/aur.pub
2023-04-11 00:12:10 +00:00
chmod 600 ~/.ssh/*
2023-04-10 17:38:32 +00:00
export GIT_SSH_COMMAND="ssh -i ~/.ssh/aur"
2023-04-10 23:44:15 +00:00
./scripts/ci/install_makepkg.sh >/dev/null 2>&1
./scripts/ci/aur_bump.sh
2023-04-10 17:38:32 +00:00
env:
SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
SSH_PUB_KEY: ${{ secrets.AUR_SSH_PUB_KEY }}