bruno/.github/workflows/release-snap.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

2023-10-12 06:15:23 +02:00
name: Publish to Snapcraft
on:
workflow_dispatch:
inputs:
build:
description: 'Build and publish to Snapcraft'
required: true
default: 'true'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Check package-lock.json
run: npm ci
- name: Install dependencies
run: npm install --legacy-peer-deps
- name: Build Electron app
2023-10-19 19:52:21 +02:00
run: |
2024-01-29 21:25:09 +01:00
npm run build:bruno-common
2023-10-19 19:52:21 +02:00
npm run build:bruno-query
npm run build:graphql-docs
2023-10-27 12:48:49 +02:00
npm run build:web
2023-10-19 19:52:21 +02:00
npm run build:electron:snap
2023-10-12 06:15:23 +02:00
- name: Install Snapcraft
run: |
sudo snap install snapcraft --classic
continue-on-error: true
- name: Configure Snapcraft
2023-10-12 06:38:17 +02:00
run: snapcraft whoami
2023-10-12 06:29:24 +02:00
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_API_KEY }}
2023-10-12 06:15:23 +02:00
- name: Publish to Snapcraft
run: |
2023-10-12 06:19:33 +02:00
snapcraft upload --release=stable packages/bruno-electron/out/*.snap
2023-10-12 06:42:30 +02:00
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_API_KEY }}