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