1
0
Fork 0
VaultUI/.github/workflows/bundle.yml

34 lines
835 B
YAML
Raw Normal View History

2021-04-15 13:17:19 +01:00
name: Bundle & Release
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source files
uses: actions/checkout@v2
- name: Install nodejs
run: curl -fsSL https://deb.nodesource.com/setup_15.x | sudo -E bash -; sudo apt-get install -y nodejs
2021-04-15 13:17:19 +01:00
- name: Install Build Deps
run: npm install
- name: Build VaultUI
2021-04-15 13:24:26 +01:00
run: npx webpack
- name: "Tar up the dist files"
2021-04-15 13:28:58 +01:00
run: tar caf VaultUI.tar --transform="s/dist\///" $(find dist -type f) LICENSE.md
2021-04-15 13:24:26 +01:00
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Latest Build"
files: VaultUI.tar