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
|
|
|
|
steps:
|
2022-07-11 20:58:57 +02:00
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
-
|
|
|
|
name: Build project
|
2020-05-31 02:17:39 +02:00
|
|
|
run: |
|
|
|
|
yarn install
|
|
|
|
yarn 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
|
2022-06-12 16:15:54 +02:00
|
|
|
uses: softprops/action-gh-release@v1
|
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
|