mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: Generate build for reuse
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Get yarn cache directory path
|
|
id: yarn-cache-dir-path
|
|
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
|
|
|
|
- uses: actions/cache@v3
|
|
id: yarn-cache
|
|
with:
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-yarn-
|
|
|
|
- name: Install Dependencies
|
|
env:
|
|
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
|
|
run: |
|
|
yarn --ignore-platform --ignore-engines --frozen-lockfile --prefer-offline
|
|
|
|
- name: Retrieve vscode icons
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: 'vscode-icons/vscode-icons'
|
|
path: 'vscode-icons'
|
|
|
|
- name: Build
|
|
run: |
|
|
NODE_OPTIONS=--openssl-legacy-provider make build
|
|
|
|
- name: Archive production artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: dist
|
|
path: dist
|