Skip to content

Commit

Permalink
add github publisher with release workflow, remove bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdavenport committed Mar 18, 2024
1 parent 5c380a2 commit 0e7817e
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 20 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release
on:
release:
types:
- created

jobs:
publish_on_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 21
- name: install dependencies
run: npm install
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish

publish_on_win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 21
- name: install dependencies
run: npm install
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish
11 changes: 11 additions & 0 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ const config: ForgeConfig = {
},
rebuildConfig: {},
makers: [new MakerSquirrel({}), new MakerZIP({}, ['darwin']), new MakerRpm({}), new MakerDeb({})],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'tjdavenport',
name: 'rust-mod-studio',
}
}
}
],
plugins: [
new AutoUnpackNativesPlugin({}),
new WebpackPlugin({
Expand Down
Loading

0 comments on commit 0e7817e

Please sign in to comment.