feishin/.github/workflows/publish-pr.yml

61 lines
1.3 KiB
YAML
Raw Normal View History

2023-01-29 06:06:41 +01:00
name: Publish (PR)
on:
pull_request:
branches:
- development
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- name: Checkout git repo
2023-01-30 03:10:39 +01:00
uses: actions/checkout@v3
2023-01-29 06:06:41 +01:00
- name: Install Node and NPM
2023-01-30 03:10:39 +01:00
uses: actions/setup-node@v3
2023-01-29 06:06:41 +01:00
with:
node-version: 16
cache: npm
- name: Install dependencies
run: |
npm install --legacy-peer-deps
- name: Build releases
uses: nick-invision/retry@v2.8.2
with:
timeout_minutes: 30
max_attempts: 3
retry_on: error
command: |
npm run postinstall
npm run build
2023-01-30 03:27:14 +01:00
npm run package:pr
2023-01-29 06:06:41 +01:00
on_retry_command: npm cache clean --force
- uses: actions/upload-artifact@v3
with:
name: windows-binaries
2023-01-29 06:06:41 +01:00
path: |
release/build/*.exe
- uses: actions/upload-artifact@v3
with:
name: linux-binaries
path: |
2023-01-29 06:06:41 +01:00
release/build/*.AppImage
release/build/*.deb
release/build/*.rpm
- uses: actions/upload-artifact@v3
with:
name: macos-binaries
path: |
release/build/*.dmg