This repository has been archived by the owner on Jul 14, 2023. It is now read-only.
adds deprecation notice to readme #177
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: Package and Release | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Use node 12.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "12.x" | |
- name: Npm install | |
run: npm install | |
- name: Get xvfb | |
run: sudo apt-get install xvfb | |
- name: Test | |
run: script/test | |
build: | |
name: Build | |
if: startsWith(github.ref, 'refs/tags/') | |
needs: test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Use node 12.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "12.x" | |
- name: Npm install | |
run: npm install | |
- name: Add MacOS certs | |
if: matrix.os == 'macos-latest' && startsWith(github.ref, 'refs/tags/') | |
run: bash ./script/add-osx-cert.sh | |
env: | |
CERTIFICATE_OSX_APPLICATION: ${{ secrets.CERTIFICATE_OSX_APPLICATION }} | |
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }} | |
- name: Add Windows certificate | |
if: matrix.os == 'windows-latest' && startsWith(github.ref, 'refs/tags/') | |
id: write_file | |
uses: timheuer/base64-to-file@v1 | |
with: | |
fileName: "win-certificate.pfx" | |
encodedString: ${{ secrets.CERTIFICATE_WINDOWS_PFX }} | |
- name: Make | |
if: startsWith(github.ref, 'refs/tags/') | |
run: npm run make | |
env: | |
APPLE_ID: ${{ secrets.APPLE_ID }} | |
APPLE_ID_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | |
WINDOWS_PFX_FILE: ${{ steps.write_file.outputs.filePath }} | |
WINDOWS_PFX_PASSWORD: ${{ secrets.WINDOWS_PFX_PASSWORD }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
prerelease: true | |
files: | | |
out/make/**/*.zip | |
out/make/**/*.rpm | |
out/make/**/*.deb | |
out/make/**/*.nupkg | |
out/make/**/*.exe | |
out/make/**/RELEASES |