Skip to content

Commit

Permalink
chore: configure release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Nov 17, 2023
1 parent 8e7b21b commit d0835f4
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
node-version: '20'

- name: Restic
- name: Install Restic
run: sudo apt install -y restic

- name: Build WebUI
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d0835f4

Please sign in to comment.