Skip to content

Commit

Permalink
feat: publish mac localy and publish linux and Windows on Github (man…
Browse files Browse the repository at this point in the history
…ually)
  • Loading branch information
hrenaud committed Aug 2, 2024
1 parent 7d77b7d commit 14a4505
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 24 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,28 @@ defaults:
run:
working-directory: electron-app/ecoindex-app
jobs:
release_it:
runs-on: ubuntu-latest
steps:
- name: Github checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm ci
- run: npm run release:ci ${{ github.event.inputs.release_type }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# release_it:
# runs-on: ubuntu-latest
# steps:
# - name: Github checkout
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Use Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 20
# - name: git config
# run: |
# git config user.name "${GITHUB_ACTOR}"
# git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
# - run: npm ci
# - run: npm run release:ci ${{ github.event.inputs.release_type }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build:
needs: release_it
# needs: release_it
strategy:
matrix:
os:
Expand Down
34 changes: 34 additions & 0 deletions electron-app/ecoindex-app/.local.release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://unpkg.com/release-it/schema/release-it.json",
"git": {
"commitMessage": "chore: release v${version}",
"tagName": "electron-v${version}"
},
"github": {
"release": true,
"autoGenerate": true,
"releaseName": "Release Electron-app ${version}",
"assets": [
"./out/make/zip/darwin/arm64/*.zip",
"./out/make/zip/darwin/x64/*.zip",
"./out/make/*.dmg"
]
},
"npm": {
"publish": false
},
"hooks": {
"before:bump": "rm -rf ./out",
"after:bump": "sh make.sh",
"after:git:release": "echo After git push, before github release",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": {
"name": "angular"
},
"infile": "CHANGELOG.md"
}
}
}
8 changes: 4 additions & 4 deletions electron-app/ecoindex-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
"publish": "env-cmd electron-forge publish",
"publish:ci": "electron-forge publish",
"lint": "eslint --ext .ts,.tsx .",
"release": "env-cmd release-it --preRelease=rc",
"release:patch": "env-cmd release-it",
"release:minor": "env-cmd release-it minor",
"release:major": "env-cmd release-it major",
"release:local": "env-cmd release-it --preRelease=rc --config .local.release-it.json",
"release:local:patch": "env-cmd release-it --config .local.release-it.json",
"release:local:minor": "env-cmd release-it minor --config .local.release-it.json",
"release:local:major": "env-cmd release-it major --config .local.release-it.json",
"release:ci": "release-it"
},
"devDependencies": {
Expand Down

0 comments on commit 14a4505

Please sign in to comment.