From a212918da2102c5bca79b0e3b111e106d156a9cc 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 | 48 ++++++++++++++++++++++++++++ 2 files changed, 49 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..9a84900a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,48 @@ +name: "tagged-release" + +on: + push: + tags: + - "v*" + workflow_dispatch: + + +jobs: + tagged-release: + name: "Tagged Release" + runs-on: "ubuntu-latest" + + steps: + build: + 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.txt + resticui \ No newline at end of file