Skip to content

build: migrate ci artifacts to s3 compatible storage #31

build: migrate ci artifacts to s3 compatible storage

build: migrate ci artifacts to s3 compatible storage #31

Workflow file for this run

name: CI
on:
push:
branches: [master]
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: latest
cache: yarn
- name: Build
env:
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
run: |
yarn install
BUILD_MODE=push
if [[ "$GITHUB_REF_TYPE" == "tag" ]]; then
BUILD_TYPE=tag
fi
script/ci-build.sh "$BUILD_MODE"
- name: Upload asar
uses: actions/upload-artifact@v3
with:
name: asar
path: build/*.asar