mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-29 16:00:57 +00:00
chore: configure release workflows
This commit is contained in:
@@ -27,7 +27,7 @@ jobs:
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Restic
|
||||
- name: Install Restic
|
||||
run: sudo apt install -y restic
|
||||
|
||||
- name: Build WebUI
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
name: "tagged-release"
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
tagged-release:
|
||||
name: "Tagged Release"
|
||||
runs-on: "ubuntu-latest"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.21'
|
||||
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Build WebUI
|
||||
run: cd webui && npm install && npm run build
|
||||
|
||||
- name: Build Binary
|
||||
run: go build .
|
||||
|
||||
- name: Rename Files
|
||||
run: |
|
||||
mv resticui resticui-linux-amd64
|
||||
|
||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
prerelease: false
|
||||
files: |
|
||||
LICENSE
|
||||
resticui-linux-amd64
|
||||
Reference in New Issue
Block a user