2021-04-15 13:17:19 +01:00
|
|
|
name: Bundle & Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout source files
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install nodejs
|
2021-04-15 13:18:36 +01:00
|
|
|
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
|
|
|
|
|
2021-04-15 13:26:48 +01:00
|
|
|
- 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"
|
2021-07-04 17:01:12 +01:00
|
|
|
files: VaultUI.tar
|
|
|
|
|
2021-07-04 17:02:48 +01:00
|
|
|
- uses: "JamesIves/github-pages-deploy-action@4.1.4"
|
2021-07-04 17:01:12 +01:00
|
|
|
with:
|
|
|
|
branch: gh-pages
|
2021-07-04 17:05:07 +01:00
|
|
|
folder: dist
|