This repository has been archived by the owner on Feb 19, 2024. It is now read-only.
Update README.md #432
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: Électron | |
on: push | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
fail-fast: false | |
steps: | |
- name: Variables d'environnement | |
run: echo "NODE_OPTIONS=--max_old_space_size=16000" >> $GITHUB_ENV | |
- name: Ouvrir le projet | |
uses: actions/checkout@v2 | |
- name: Installer Node.js, NPM et Yarn | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Installer Snapcraft | |
uses: samuelmeuli/action-snapcraft@v1 | |
# Only install Snapcraft on Ubuntu | |
if: startsWith(matrix.os, 'ubuntu') | |
with: | |
# Log in to Snap Store | |
snapcraft_token: ${{ secrets.snapcraft_token }} | |
- name: Compiler et publier l'application Électron | |
uses: samuelmeuli/[email protected] | |
with: | |
# GitHub token, automatically provided to the action | |
# (No need to define this secret in the repo settings) | |
github_token: ${{ secrets.github_token }} | |
# If the commit is tagged with a version (e.g. "v1.0.0"), | |
# release the app after building | |
release: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
use_vue_cli: true |