chore: update node-gyp #100
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: Build Packages | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Yarn | |
run: yarn install | |
- name: Build For Linux | |
id: build-linux | |
run: | | |
yarn build:bundle | |
yarn build:linux --publish never | |
- name: Pack Build Files | |
run: | | |
mkdir ~/Revolt-linux-AppImage | |
mv dist/*.AppImage ~/Revolt-linux-AppImage | |
mkdir ~/Revolt-linux | |
mv dist/*.tar.gz ~/Revolt-linux | |
- name: Publish AppImage | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ~/Revolt-linux-AppImage | |
name: Revolt-linux-AppImage | |
- name: Publish Tarfile | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ~/Revolt-linux/ | |
name: Revolt-linux | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Enable Developer Command Prompt | |
uses: ilammy/[email protected] | |
- name: Install Yarn | |
run: yarn install | |
- name: Build For Windows | |
id: build-windows | |
run: | | |
yarn build:bundle | |
yarn build:windows --publish never | |
- name: Pack Build Files | |
run: | | |
mkdir D:\a\desktop\Revolt-windows | |
mv D:\a\desktop\desktop\dist\win-unpacked\* D:\a\desktop\Revolt-windows | |
mkdir D:\a\desktop\Revolt-windows-Setup | |
mv D:\a\desktop\desktop\dist\*.exe D:\a\desktop\Revolt-windows-Setup.exe | |
mkdir D:\a\desktop\Revolt-windows-appx | |
mv D:\a\desktop\desktop\dist\*.appx D:\a\desktop\Revolt-windows-appx | |
- name: Publish Zipfile | |
uses: actions/upload-artifact@v3 | |
with: | |
path: D:\a\desktop\Revolt-windows | |
name: Revolt-windows | |
- name: Publish Installer | |
uses: actions/upload-artifact@v3 | |
with: | |
path: D:\a\desktop\Revolt-windows-Setup.exe | |
name: Revolt-windows-Setup | |
- name: Publish Appx | |
uses: actions/upload-artifact@v3 | |
with: | |
path: D:\a\desktop\Revolt-windows-appx | |
name: Revolt-windows-appx | |
build-macos: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Yarn | |
run: yarn install | |
- name: Build For macOS | |
run: | | |
yarn build:bundle | |
yarn build:mac --publish never | |
mv dist/*-universal.dmg ~/Revolt-macOS-universal.dmg | |
- name: Publish Build Files | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ~/Revolt-macOS-universal.dmg | |
name: Revolt-macOS-universal |