Bump electron from 26.4.3 to 27.0.3 #75
Workflow file for this run
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 | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the main branch | |
# Snapcraft Token Valid till 10 March, 2023 | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: npm-version | |
id: gdocs-version | |
uses: martinbeentjes/npm-get-version-action@main | |
- name: Build it | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npm install -g electron-builder | |
npm run dist | |
electron-builder --linux snap --publish onTagOrDraft | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Linux | |
path: dist/* | |
- name: Install Snapcraft | |
uses: samuelmeuli/[email protected] | |
with: | |
snapcraft_token: ${{ secrets.SNAPCRAFT_TOKEN }} | |
- name: Use Snapcraft | |
run: | | |
snapcraft --help | |
snapcraft upload --release=stable dist/Google-Docs-linux-amd64-${{ steps.gdocs-version.outputs.current-version}}.snap | |
build-mac: | |
name: macOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Prepare for app signing and notarization | |
env: | |
API_KEY: ${{ secrets.api_key }} | |
if: ${{ env.API_KEY }} | |
run: | | |
echo "CSC_LINK=${{ secrets.mac_cert }}" >> $GITHUB_ENV | |
echo "CSC_KEY_PASSWORD=${{ secrets.mac_cert_password }}" >> $GITHUB_ENV | |
echo "APPLE_ID=${{ secrets.apple_id }}" >> $GITHUB_ENV | |
echo "APPLE_ID_PASSWORD=${{ secrets.apple_id_password }}" >> $GITHUB_ENV | |
echo "TEAM_ID=${{ secrets.team_id }}" >> $GITHUB_ENV | |
- name: Build it | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npm run dist | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: macOS | |
path: dist/* | |
build-windows: | |
name: Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Build it | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npm run dist | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Windows | |
path: dist/* |