From d0835f4a9ebec457ce440791eed4dea77bfafbf8 Mon Sep 17 00:00:00 2001 From: garethgeorge Date: Thu, 16 Nov 2023 20:28:14 -0800 Subject: [PATCH] chore: configure release workflows --- .github/workflows/build-and-test.yml | 2 +- .github/workflows/release.yml | 44 ++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 654bbcee..9e213118 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -27,7 +27,7 @@ jobs: with: node-version: '20' - - name: Restic + - name: Install Restic run: sudo apt install -y restic - name: Build WebUI diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..0a2f063b --- /dev/null +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file