Skip to content

Commit

Permalink
Add .circleci/config.yml (#15)
Browse files Browse the repository at this point in the history
* Add .circleci/config.yml

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* get everything ready
  • Loading branch information
andirsun authored May 26, 2024
1 parent 18aad1e commit 181a946
Show file tree
Hide file tree
Showing 7 changed files with 6,084 additions and 3,004 deletions.
50 changes: 50 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
version: 2.1

orbs:
# Use the official CircleCI Node orb
# See: https://circleci.com/developer/orbs/orb/circleci/node
node: circleci/[email protected]

# Orchestrate jobs using workflows
# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
workflows:
release-app:
jobs:
- release:
# Run this job only when a commit is pushed to the main branch.
filters:
branches:
only:
- main

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs
jobs:
release:
machine:
image: ubuntu-2204:current
resource_class: arm.large
# Add steps to the job
# See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps
steps:
# Checkout the code as the first step.
- checkout
- node/install:
node-version: "20"
- run:
name: "Install FPM enviroment"
command: sudo apt-get install ruby-dev build-essential rpm && sudo gem i fpm -f
- run:
name: "Install dependencies"
command: npm install
- run:
name: "Build App"
command: npm run build
- run:
name: "Sign, Notarize and Release new Version"
command: npm run publish
environment:
GITHUB_TOKEN: $GH_TOKEN

43 changes: 0 additions & 43 deletions .github/workflows/release.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
node_modules/
dist/*
package-lock.json
dist/*
5 changes: 1 addition & 4 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ linux:
- target: AppImage
arch:
- arm64
- target: flatpak
- target: rpm
arch:
- arm64
flatpak:
runtimeVersion: 23.08
baseVersion: 23.08
publish:
- provider: github
releaseType: release
Loading

0 comments on commit 181a946

Please sign in to comment.