2020-05-31 02:17:39 +02:00
|
|
|
# Publish pre-build release
|
2022-08-26 21:23:44 +02:00
|
|
|
name: Create Github release
|
2020-05-31 02:17:39 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-06-19 17:22:34 +02:00
|
|
|
tags: [v*]
|
2020-05-31 02:17:39 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Upload Release Asset
|
|
|
|
runs-on: ubuntu-latest
|
2024-10-17 09:39:28 +02:00
|
|
|
timeout-minutes: 20
|
2020-05-31 02:17:39 +02:00
|
|
|
steps:
|
2022-07-11 20:58:57 +02:00
|
|
|
-
|
|
|
|
name: Checkout
|
2024-03-11 09:54:09 +01:00
|
|
|
uses: actions/checkout@v4
|
2024-04-22 19:55:25 +02:00
|
|
|
-
|
|
|
|
name: pnpm setup
|
2024-10-16 14:05:24 +02:00
|
|
|
uses: pnpm/action-setup@v4
|
2024-04-22 19:55:25 +02:00
|
|
|
-
|
2024-10-16 14:13:43 +02:00
|
|
|
name: Node.js setup
|
2024-04-22 19:55:25 +02:00
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
2024-10-16 14:13:43 +02:00
|
|
|
node-version: 22
|
2024-04-22 19:55:25 +02:00
|
|
|
cache: 'pnpm'
|
2022-07-11 20:58:57 +02:00
|
|
|
-
|
|
|
|
name: Build project
|
2020-05-31 02:17:39 +02:00
|
|
|
run: |
|
2024-04-22 19:55:25 +02:00
|
|
|
pnpm install --frozen-lockfile
|
|
|
|
pnpm build
|
2022-07-11 20:58:57 +02:00
|
|
|
-
|
|
|
|
name: Create artifact
|
2020-05-31 09:00:31 +02:00
|
|
|
working-directory: "dist"
|
|
|
|
run: zip -r ../homer.zip ./*
|
2022-07-11 20:58:57 +02:00
|
|
|
-
|
|
|
|
name: Create Release
|
2020-05-31 02:17:39 +02:00
|
|
|
id: create_release
|
2024-03-11 09:54:09 +01:00
|
|
|
uses: softprops/action-gh-release@v2
|
2020-05-31 02:17:39 +02:00
|
|
|
with:
|
2022-06-12 16:15:54 +02:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
generate_release_notes: true
|
|
|
|
files: |
|
|
|
|
homer.zip
|