💅 Run prettier in 'build.yml'

This commit is contained in:
ful1e5 2021-02-09 12:36:09 +05:30
parent eb5d7b247f
commit 40a012ea58

View file

@ -1,71 +1,71 @@
name: build name: build
on: on:
push: push:
paths-ignore: paths-ignore:
- "**.md" - "**.md"
- "**.bbcode" - "**.bbcode"
- LICENSE - LICENSE
branches: [main, dev] branches: [main, dev]
pull_request: pull_request:
paths-ignore: paths-ignore:
- "**.md" - "**.md"
- "**.bbcode" - "**.bbcode"
- LICENSE - LICENSE
branches: [main] branches: [main]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install build dependencies (apt) - name: Install build dependencies (apt)
run: sudo apt install -y libx11-dev libxcursor-dev libpng-dev run: sudo apt install -y libx11-dev libxcursor-dev libpng-dev
continue-on-error: false continue-on-error: false
- name: Get yarn cache directory path - name: Get yarn cache directory path
id: yarn-cache-dir-path id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)" run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Caching yarn packages - name: Caching yarn packages
uses: actions/cache@v2 uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with: with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-yarn- ${{ runner.os }}-yarn-
- name: Set Up NodeJS 12.x - name: Set Up NodeJS 12.x
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: "12.x" node-version: "12.x"
- name: Caching pip packages - name: Caching pip packages
uses: actions/cache@v2 uses: actions/cache@v2
id: pip-cache # use this to check for `cache-hit` (`steps.pip-cache.outputs.cache-hit != 'true'`) id: pip-cache # use this to check for `cache-hit` (`steps.pip-cache.outputs.cache-hit != 'true'`)
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pip- ${{ runner.os }}-pip-
- name: Set up Python 3.8 - name: Set up Python 3.8
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: "3.8" python-version: "3.8"
- name: Generating `macOSBigSur` Cursor Theme - name: Generating `macOSBigSur` Cursor Theme
run: make run: make
continue-on-error: false continue-on-error: false
- name: Compressing UNIX theme - name: Compressing UNIX theme
run: tar -cvzf macOSBigSur.tar.gz themes/macOSBigSur run: tar -cvzf macOSBigSur.tar.gz themes/macOSBigSur
- name: Uploading `bitmaps` artifact - name: Uploading `bitmaps` artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: bitmaps name: bitmaps
path: bitmaps/* path: bitmaps/*
- name: Uploading `macOSBigSur` UNIX Theme artifact - name: Uploading `macOSBigSur` UNIX Theme artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: macOSBigSur name: macOSBigSur
path: macOSBigSur.tar.gz path: macOSBigSur.tar.gz
- name: Uploading `macOSBigSur` Windows Theme artifact - name: Uploading `macOSBigSur` Windows Theme artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: macOSBigSur_Windows name: macOSBigSur_Windows
path: themes/macOSBigSur_Windows/* path: themes/macOSBigSur_Windows/*