Edit release file, rollback package.json
This commit is contained in:
parent
085cbf1d7b
commit
f15b01371c
111
.github/workflows/build-and-release.yml
vendored
111
.github/workflows/build-and-release.yml
vendored
@ -1,49 +1,82 @@
|
|||||||
name: Release
|
name: Build and Deploy Electron App
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types:
|
branches:
|
||||||
- created
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build:
|
||||||
publish_on_linux:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout code
|
||||||
- uses: actions/setup-node@master
|
uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
node-version: 14
|
|
||||||
- name: install dependencies
|
|
||||||
run: npm install
|
|
||||||
- name: publish
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: npm run publish
|
|
||||||
|
|
||||||
publish_on_mac:
|
- name: Setup Node.js
|
||||||
runs-on: macos-latest
|
uses: actions/setup-node@v2
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@master
|
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: '18'
|
||||||
- name: install dependencies
|
|
||||||
run: npm install
|
|
||||||
- name: publish
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: npm run publish
|
|
||||||
|
|
||||||
publish_on_win:
|
- name: Install dependencies
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@master
|
|
||||||
with:
|
|
||||||
node-version: 14
|
|
||||||
- name: install dependencies
|
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: publish
|
|
||||||
|
- name: Build Electron app
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Archive built files
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: electron-build
|
||||||
|
path: dist/
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Download built files
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: electron-build
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '18'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Deploy release to GitHub
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
dist/*
|
||||||
|
tag_name: v${{ github.ref }}
|
||||||
|
title: Release ${{ github.ref }}
|
||||||
|
body: Release of ${{ github.sha }}
|
||||||
|
|
||||||
|
- name: Publish to GitHub Packages
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref }}
|
||||||
|
repository: ${{ github.repository }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: npm run publish
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
cd src
|
||||||
|
npm install
|
||||||
|
- name: Build the Electron App
|
||||||
|
run: |
|
||||||
|
cd src
|
||||||
|
npm run build
|
||||||
|
- name: Build and Publish the Electron App to GitHub Packages
|
||||||
|
uses: samuelmeuli/action-electron-builder@v2
|
||||||
|
with:
|
||||||
|
publish: always
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
15
package.json
15
package.json
@ -43,21 +43,6 @@
|
|||||||
"electron-builder": "^23.6.0",
|
"electron-builder": "^23.6.0",
|
||||||
"eslint": "^8.38.0"
|
"eslint": "^8.38.0"
|
||||||
},
|
},
|
||||||
"config": {
|
|
||||||
"forge": {
|
|
||||||
"publishers": [
|
|
||||||
{
|
|
||||||
"name": "@electron-forge/publisher-github",
|
|
||||||
"config": {
|
|
||||||
"repository": {
|
|
||||||
"owner": "tomarok",
|
|
||||||
"name": "BTCV-Launcher"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/Tomarok/BTCV-Launcher.git"
|
"url": "git+https://github.com/Tomarok/BTCV-Launcher.git"
|
||||||
|
Loading…
Reference in New Issue
Block a user