Fix loading About and Settings page #7
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: π¬ Whatstron CI/CD | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build β | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v3 | |
- name: π Install Yarn | |
run: npm install -g yarn | |
- name: π§° Install Dependencies | |
run: yarn install | |
- name: π Build Web App | |
run: yarn build | |
- name: π Archive Production Artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: build | |
path: out | |
pack-windows: | |
runs-on: windows-latest | |
permissions: | |
contents: write | |
needs: build | |
name: Pack Windows π¦ | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v3 | |
- name: π Download Builded App | |
uses: actions/download-artifact@master | |
with: | |
name: build | |
path: out | |
- name: π Install Yarn | |
run: npm install -g yarn | |
- name: π§° Install Dependencies | |
run: yarn install | |
- name: πͺ Build Windows Artifact | |
run: "yarn build:win" | |
- name: πΎ Publish Artifact | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | |
"dist/Whatstron.exe" | |
pack-linux: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
needs: build | |
name: Pack Ubuntu π¦ | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v3 | |
- name: π Download Builded App | |
uses: actions/download-artifact@master | |
with: | |
name: build | |
path: out | |
- name: π Install Yarn | |
run: npm install -g yarn | |
- name: π§° Install Dependencies | |
run: yarn install | |
- name: π§ Build Linux Artifact | |
run: "yarn build:linux" | |
- name: πΎ Publish Artifact | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
dist/Whatstron.AppImage | |
dist/Whatstron.deb | |
pack-mac: | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
needs: build | |
name: Pack macOS π¦ | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v3 | |
- name: π Download Builded App | |
uses: actions/download-artifact@master | |
with: | |
name: build | |
path: out | |
- name: π Install Yarn | |
run: npm install -g yarn | |
- name: π§° Install Dependencies | |
run: yarn install | |
- name: π Build macOS Artifact | |
run: "yarn build:mac" | |
- name: πΎ Publish Artifact | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | |
"dist/Whatstron.dmg" |