Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: release process split #387

Merged
merged 1 commit into from
May 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/electronbuilder-build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build OS-dependent packages
on: push
name: Build OS-dependent packages - no release
on: workflow_dispatch
jobs:
release:
runs-on: ${{ matrix.os }}
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/release-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and release packages
on: workflow_dispatch
build-packages:

runs-on: ${{ matrix.os }}
needs: release
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-2019]

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 14

- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: true
build_script_name: 'compile'
50 changes: 25 additions & 25 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,32 @@ jobs:
echo ${{ steps.semantic.outputs.new_release_major_version }}
echo ${{ steps.semantic.outputs.new_release_minor_version }}
echo ${{ steps.semantic.outputs.new_release_patch_version }}
#
# build-packages:

build-packages:
# runs-on: ${{ matrix.os }}
# needs: release
# if: needs.release.outputs.new_release_published == 'true'
# strategy:
# matrix:
# os: [macos-latest, ubuntu-latest, windows-2019]

runs-on: ${{ matrix.os }}
needs: release
if: needs.release.outputs.new_release_published == 'true'
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-2019]
# steps:
# - name: Check out Git repository
# uses: actions/checkout@v1

steps:
- name: Check out Git repository
uses: actions/checkout@v1
# - name: Install Node.js, NPM and Yarn
# uses: actions/setup-node@v1
# with:
# node-version: 14

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 14

- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: true
build_script_name: 'compile'
# - name: Build/release Electron app
# uses: samuelmeuli/action-electron-builder@v1
# with:
# # GitHub token, automatically provided to the action
# # (No need to define this secret in the repo settings)
# github_token: ${{ secrets.github_token }}
# # If the commit is tagged with a version (e.g. "v1.0.0"),
# # release the app after building
# release: true
# build_script_name: 'compile'
4 changes: 3 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
["@semantic-release/git",{
"message": "v${nextRelease.version}\n\n${nextRelease.notes}"
}]
]
}
Loading