This commit is contained in:
parent
6326097e01
commit
7e246df079
1 changed files with 45 additions and 0 deletions
45
.forgejo/workflows/build.yml
Normal file
45
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
upload-one:
|
||||||
|
container:
|
||||||
|
image: docker.io/southfox09/cl-builder:latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Restore npm dependencies
|
||||||
|
uses: actions/cache/restore@v4
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: ${{ runner.os }}-nodejs-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
|
||||||
|
- name: Restore lein project dependencies
|
||||||
|
uses: actions/cache/restore@v4
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-clojure-${{ hashFiles('**/project.clj') }}
|
||||||
|
|
||||||
|
- run: npm install
|
||||||
|
- run: npm run postcss:release
|
||||||
|
- run: npm run shadow:release
|
||||||
|
- run: mkdir resources/public && cp -rf public/* resources/public
|
||||||
|
- run: lein uberjar
|
||||||
|
|
||||||
|
- name: Cache npm dependencies
|
||||||
|
id: cache-primes-save
|
||||||
|
uses: actions/cache/save@v4
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: ${{ runner.os }}-nodejs-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
|
||||||
|
- name: Cache lein project dependencies
|
||||||
|
uses: actions/cache/save@v4
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-clojure-${{ hashFiles('**/project.clj') }}
|
||||||
|
|
||||||
|
- name: Upload build
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: uberjar
|
||||||
|
path: target/*-standalone.jar
|
Loading…
Reference in a new issue