Merge branch 'dev' into early-unstable #349
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
publish: | |
# To enable auto publishing to github, update your electron publisher | |
# config in package.json > "build" and remove the conditional below | |
#if: ${{ github.repository_owner === 'electron-react-boilerplate' }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v4 | |
- name: Git Submodule Update | |
run: git submodule update --init --recursive | |
- name: Use cached node_modules | |
id: cache-node_modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
- name: Install Node and NPM | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
- name: Install dependencies | |
if: steps.cache-node_modules.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: Set Early Build | |
run: | | |
sed -i "s|main|dev|g" "./src/data/branch.json" | |
#sed -i "s|EmuDeck|EmuDeck-dev|g" "./release/app/package.json" | |
#sed -i 's|"productName": "EmuDeck"|"productName": "EmuDeck-dev"|g' "./package.json" | |
- name: Install Wine | |
run: | | |
sudo dpkg --add-architecture i386 | |
sudo apt update | |
sudo apt install -y wine64 wine32 | |
- name: Publish releases | |
env: | |
# These values are used for auto updates signing | |
#APPLE_ID: ${{ secrets.APPLE_ID }} | |
#APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }} | |
#CSC_LINK: ${{ secrets.CSC_LINK }} | |
#CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | |
# This is used for uploading release assets to github | |
#npm run build:${GITHUB_REF##*/} -> Branch name | |
#npm exec electron-builder -- --publish always --linux --win | |
GH_TOKEN: ${{ secrets.github_token }} | |
run: | | |
npm run postinstall | |
npm run build | |
npm exec electron-builder -- --publish always --linux --x64 && npm exec electron-builder -- --publish always --win --x64 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: EmuDeck-dev-AppImage | |
path: '**/*.AppImage' | |
- name: Upload Artifact Windows | |
uses: actions/upload-artifact@v4 | |
with: | |
name: EmuDeck-dev-Win32 | |
path: '**/*.exe' |