From e283796395d78b6e2ea441b2a8cf987a39d17eed Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Tue, 2 Apr 2024 19:05:53 +0200 Subject: [PATCH] added release workflow --- .github/workflows/release.yml | 52 +++++++++++++++++++++++++++++++++++ relic-core | 1 + 2 files changed, 53 insertions(+) create mode 100644 .github/workflows/release.yml create mode 160000 relic-core diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..89e38dd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,52 @@ +name: Build/release Electron app + +on: + push: + tags: + - v*.*.* + +jobs: + release: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - name: Check out Git repository + uses: actions/checkout@v3 + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Install Dependencies + run: npm install + + - name: build-mac + if: matrix.os == 'macos-latest' + run: npm run build:mac + + - name: build-win + if: matrix.os == 'windows-latest' + run: npm run build:win + + - name: release + uses: softprops/action-gh-release@v1 + with: + draft: true + files: | + dist/*.exe + dist/*.zip + dist/*.dmg + dist/*.AppImage + dist/*.snap + dist/*.deb + dist/*.rpm + dist/*.tar.gz + dist/*.yml + dist/*.blockmap + env: + GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} \ No newline at end of file diff --git a/relic-core b/relic-core new file mode 160000 index 0000000..5da2cb0 --- /dev/null +++ b/relic-core @@ -0,0 +1 @@ +Subproject commit 5da2cb0765d75f51222414b3e7e690e0d74d408d