2021-07-06 17:52:01 +02:00
|
|
|
name: build-pack
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
schedule:
|
|
|
|
- cron: "21 6 * * *"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Lein
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install leiningen
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
lein run
|
|
|
|
- name: Upload
|
|
|
|
run: |
|
|
|
|
rm -rf docs/index.html
|
|
|
|
mv dist/index.html docs
|
2021-07-19 00:00:10 +02:00
|
|
|
cp -rf resources/static/ docs
|
2021-07-06 17:52:01 +02:00
|
|
|
git config user.email "action@github.com"
|
|
|
|
git config user.name "GitHub Action"
|
|
|
|
git add docs/index.html
|
2021-07-19 00:00:10 +02:00
|
|
|
git add docs/static/
|
|
|
|
git commit -m "$(date +"%F")"
|
2021-07-06 17:57:21 +02:00
|
|
|
git push origin main
|
2021-07-06 17:52:01 +02:00
|
|
|
|