This repository was archived by the owner on Dec 21, 2022. It is now read-only.
Repository navigation
67 lines (63 loc) · 2.66 KB
/
Copy pathAtlasReleaseThemeFiles.yml
File metadata and controls
67 lines (63 loc) · 2.66 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Create Release For Atlas Theme Folder
# description: publish the latest Atlas theme files so that other teams (e.g. templates) can rely on this downstream
# for e.g. automation. theme files are not distributed as part of Atlas_Core or other styling module. When Atlas 2
# upgraded to Atlas 3, a migration doc included a link to a .zip file with theme files.
on:
push:
branches: [master]
paths:
- packages/theming/atlas/src/theme/**/*
- "!**/*.md"
jobs:
build:
name: Create Release For Atlas Theme Folder
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Checkout code
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
with:
submodules: false
- name: "Defining cache"
uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: "Defining node version"
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # v2
with:
node-version-file: ".nvmrc"
- name: "Installing dependencies"
run: npm install
- name: "Compile theme native TS to JS in dist"
run: |
cd packages/theming/atlas
npm run release-ts
- name: "Create theme web folder in dist"
run: |
mkdir -p packages/theming/atlas/dist/theme/web/
- name: "Copy theme web folder to dist"
uses: canastro/copy-file-action@6bae380f8f61d936bfe053fbedce1663beb3f2c1 # master
with:
source: "packages/theming/atlas/src/theme/web/*"
target: "packages/theming/atlas/dist/theme/web/"
- name: "Create ZIP"
uses: montudor/action-zip@0852c26906e00f8a315c704958823928d8018b28 # v1.0.0
with:
args: zip -qq -r atlasui-theme-files.zip packages/theming/atlas/dist/theme/
- name: "Release Atlas Theme Files"
uses: marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0 # v1.2.1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "atlasui-theme-files-${{ steps.date.outputs.date }}"
prerelease: false
title: "Atlas UI - Theme Folder Files"
files: |
packages/theming/atlas/dist/theme/native/main.js
packages/theming/atlas/dist/theme/native/custom-variables.js
packages/theming/atlas/src/theme/web/**/*
atlasui-theme-files.zip