Skip to content
Open
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
66 changes: 66 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build
on: push
jobs:
release:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}

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

- name: Checkout web repo
uses: actions/checkout@v3
with:
repository: edave64/Doki-Doki-Dialog-Generator
ref: gh-pages
path: gh-pages

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

- shell: bash
run: cp -r gh-pages/release dddgWeb

- shell: bash
run: rm -rf gh-pages

- shell: bash
run: find ./dddgWeb/assets/ -name "*.png" -type f -delete

- shell: bash
run: find ./dddgWeb/assets/ -name "*.lq.webp" -delete

- shell: bash
run: echo "//npm.pkg.github.com:_authToken=${{ secrets.REGISTRYTOKEN }}" >> ~/.npmrc

- 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: ${{ startsWith(github.ref, 'refs/tags/v') }}

- shell: bash
run: ls

- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: dist ${{ matrix.os }}
path: |
dist/*.exe
dist/*.exe.blockmap
dist/*.dmg
dist/*.dmg.blockmap
dist/*.AppImage
dist/latest*.yml
19 changes: 18 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,26 @@
},
"linux": {
"target": [
"AppImage"
{
"target": "AppImage",
"arch": [
"x64",
"arm64"
]
}
],
"category": "Game;Graphics"
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
}
]
}
}
}