67 lines
1.4 KiB
YAML
67 lines
1.4 KiB
YAML
name: Cider Chores
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
compile-and-post:
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
image: electronuserland/builder:wine
|
|
|
|
|
|
steps:
|
|
- name: Checkout 🛎
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
|
|
- name: Install Dependencies 📦
|
|
run: yarn install
|
|
|
|
- name: Build 🏗
|
|
run: yarn dist:all
|
|
|
|
- name: Upload Release 🚀
|
|
uses: softprops/action-gh-release@v2.0.5
|
|
with:
|
|
files: |
|
|
./dist/*.exe
|
|
./dist/*.deb
|
|
./dist/*.AppImage
|
|
./dist/*.rpm
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
prettier:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [18]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
# Make sure the actual branch is checked out when running on pull requests
|
|
ref: ${{ github.head_ref }}
|
|
|
|
- name: Prettify code
|
|
run: npm run format:write
|
|
|
|
- name: Commit Prettier Code
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
commit_message: "chore: Prettified Code\n [ci skip]"
|
|
commit_user_name: "cider-chore[bot]"
|
|
commit_user_email: "cider-chore[bot]@users.noreply.github.com"
|