2024-06-02 10:43:40 +01:00
|
|
|
on: [push, pull_request]
|
2024-06-02 10:46:20 +01:00
|
|
|
|
2024-06-02 10:43:40 +01:00
|
|
|
name: Build
|
2024-06-02 10:46:20 +01:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
2024-06-02 10:43:40 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/setup-go@v5
|
|
|
|
with:
|
|
|
|
go-version: stable
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: latest
|
|
|
|
- uses: actions/checkout@v4
|
2024-06-02 10:53:40 +01:00
|
|
|
- run: yarn
|
|
|
|
- run: yarn global add tailwindcss
|
2024-06-02 10:43:40 +01:00
|
|
|
- run: yarn build
|
2024-06-02 10:51:08 +01:00
|
|
|
- run: tar -czvf lavender.tar.gz lavender/
|
2024-06-02 10:43:40 +01:00
|
|
|
- name: Release
|
|
|
|
uses: softprops/action-gh-release@v2
|
|
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
|
|
with:
|
|
|
|
files: |
|
2024-06-02 10:51:08 +01:00
|
|
|
lavender.tar.gz
|