Merge pull request #148 from Accedia/develop #88
This file contains hidden or 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: RELEASE | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| build-and-publish: | |
| runs-on: windows-latest | |
| permissions: write-all | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: 14 | |
| - name: Debug Node.js Version | |
| run: node -v | |
| - name: Clear npm cache | |
| run: npm cache clean --force | |
| - name: npm install electron | |
| working-directory: ./electron-app | |
| run: npm install | |
| - name: npm install react | |
| working-directory: ./react-app | |
| run: npm install | |
| - name: Build | |
| working-directory: ./electron-app | |
| run: npm run build | |
| - name: Publish Application | |
| working-directory: ./electron-app | |
| env: | |
| FORGE_TOKEN: ${{ secrets.FORGE_TOKEN }} | |
| run: npm run publish |