-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (47 loc) · 1.19 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build and publish
on:
push:
tags:
- 'v*'
jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Web
uses: actions/checkout@v3
with:
repository: cernbox/web
path: web
token: ${{ secrets.GHCR_TOKEN }}
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
- name: Build Web
run: |
export TITLE=CERNBox
export SOURCE_MAP=true
export REQUIRE_TIMEOUT=20
export DOCUMENTATION_URL="https://cernbox.docs.cern.ch/web/#desktop-requirements"
cd web
make dist
- name: Create release
run: |
mkdir -p release
tar -C web/dist -czf release/web.tar.gz .
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
files: release/web.tar.gz
- name: Create tag in web repo
run: |
cd web
git tag ${GITHUB_REF/refs\/tags\//}
git push --tags