Skip to content

Commit

Permalink
updated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Sep 22, 2023
1 parent 790fc34 commit 3607bd5
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 8 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/build-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,67 @@ jobs:
with:
name: EmuDeck-Beta-AppImage
path: '**/*.AppImage'
publish-windows-mac:
# 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: [macOS-latest]

steps:
- name: Checkout git repo
uses: actions/checkout@v3

- name: Git Submodule Update
run: git submodule update --init --recursive

- name: Use cached node_modules
id: cache-node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install Node and NPM
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm

- name: Install dependencies
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: npm ci

- name: Set Beta Build
run: |
sed -i'.original' -e "s|main|beta|g" "./src/data/branch.json"
#sed -i'.original' -e "s|EmuDeck|EmuDeck-beta|g" "./release/app/package.json"
#sed -i'.original' -e 's|"productName": "EmuDeck"|"productName": "EmuDeck-beta"|g' "./package.json"
- 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 --win
npm exec electron-builder -- --publish always --mac
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: EmuDeck-beta-win-mac
path: |
**/*.exe
**/*.dmg
4 changes: 2 additions & 2 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
with:
name: EmuDeck-dev-AppImage
path: '**/*.AppImage'
publish-windows:
publish-windows-mac:
# 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' }}
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: EmuDeck-dev
name: EmuDeck-dev-win-mac
path: |
**/*.exe
**/*.dmg
10 changes: 7 additions & 3 deletions .github/workflows/build-early.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
with:
name: EmuDeck-Early-AppImage
path: '**/*.AppImage'
publish-windows:
publish-windows-mac:
# 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' }}
Expand Down Expand Up @@ -125,8 +125,12 @@ jobs:
npm run postinstall
npm run build
npm exec electron-builder -- --publish always --win
npm exec electron-builder -- --publish always --mac
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: EmuDeck-early-windows
path: '**/*.exe'
name: EmuDeck-dev-win-mac
path: |
**/*.exe
**/*.dmg
66 changes: 63 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
publish:
publish-linux:
# 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' }}
Expand Down Expand Up @@ -56,8 +56,68 @@ jobs:
npm run postinstall
npm run build
npm exec electron-builder -- --publish always --linux
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: EmuDeck-AppImage
path: '**/*.AppImage'
publish-windows-mac:
# 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: [macOS-latest]

steps:
- name: Checkout git repo
uses: actions/checkout@v3

- name: Git Submodule Update
run: git submodule update --init --recursive

- name: Use cached node_modules
id: cache-node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install Node and NPM
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm

- name: Install dependencies
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: npm ci

- 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 --win
npm exec electron-builder -- --publish always --mac
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: EmuDeck-Dev-Exe
path: '**/*.exe'
name: EmuDeck-win-mac
path: |
**/*.exe
**/*.dmg

0 comments on commit 3607bd5

Please sign in to comment.