Skip to content

Commit

Permalink
Merge branch 'master' of github.com:wacky-tracky/wacky-tracky-client-…
Browse files Browse the repository at this point in the history
…html5
  • Loading branch information
jamesread committed Jan 16, 2024
2 parents aee67e7 + 99b9215 commit 86a6fe4
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Make Package

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16

- run: npm update

- name: make
run: make

- name: get date
run: |
echo "DATE=$(date +'%Y.%m.%d')" >> "$GITHUB_ENV"
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.DATE }}-${{ github.sha }}"
prerelease: true
title: "${{ env.DATE }}-${{ github.sha }}"
files: |
webui.tgz
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
dist:
rm -rf dist
parcel build src/index.html --no-content-hash
cp src/robots.txt dist/robots.txt
mkdir -p dist/wallpapers
cp wallpapers/* dist/wallpapers/ || :
ln -s dist build
ln -sf dist build
cd dist && tar cavf ../webui.tgz .

docker: container

Expand Down

0 comments on commit 86a6fe4

Please sign in to comment.