Unexplode release workflow

This commit is contained in:
Vendicated 2023-04-10 19:38:32 +02:00
parent e16cdcf387
commit c5165afe7f
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

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