Skip to content

Merge pull request #90 from BobbyWibowo/pr-3.2.15 #43

Merge pull request #90 from BobbyWibowo/pr-3.2.15

Merge pull request #90 from BobbyWibowo/pr-3.2.15 #43

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Release
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
NODE_VERSION: 14
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Node v14
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache node_modules
uses: actions/cache@v2
id: cache-nodemodules
with:
path: node_modules
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --non-interactive
- name: Build application (Classic)
run: yarn build
- name: Build application (BetterDiscord plugin)
run: yarn build-bd
- name: Build application (Vencord plugin)
run: yarn build-vc
- uses: EndBug/add-and-commit@v6
with:
branch: master
message: 'dist: deploy new dist file'