Skip to content

Commit

Permalink
update build step
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpineda committed Oct 6, 2022
1 parent 3651460 commit d61087c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,17 @@ jobs:
- name: Install Packages
run: yarn install

- name: Build Titan Reactor TS application / Electorn
- name: Build Electron App
run: yarn dist
env: #satisfy electron-builder even though we're not using their publish function (yet?)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Zip Assets
- name: Zip Assets (Windows)
uses: vimtor/action-zip@v1
if: matrix.os == 'windows-latest'
with:
files: packages/titan-reactor/dist
dest: titan-reactor.zip
files: packages/titan-reactor/release/win-unpacked
dest: titan-reactor.windows.zip

- name: Generate release tag
id: tag
Expand All @@ -60,7 +61,7 @@ jobs:
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: "titan-reactor.zip"
artifacts: "titan-reactor.windows.zip"
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.tag.outputs.release_tag }}
prerelease: true
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"homepage": "https://github.com/imbateam-gg/titan-reactor#readme",
"build": {
"directories": {
"output": "release/${version}",
"output": "release",
"buildResources": "build"
},
"files": [
Expand All @@ -49,12 +49,10 @@
"category": "Game",
"icon": "icon256x256.ico"
},
"extraResources": [
{
"from": "bundled",
"to": "bundled"
}
]
"extraResources": [{
"from": "bundled",
"to": "bundled"
}]
},
"debug": {
"env": {
Expand Down Expand Up @@ -175,4 +173,4 @@
"config": {
"titan-reactor-api": "2.0.0"
}
}
}

0 comments on commit d61087c

Please sign in to comment.