From 2b4be06f7106ae093fc8e40b8a03bb9ebc893859 Mon Sep 17 00:00:00 2001 From: virtualzone <13085858+virtualzone@users.noreply.github.com> Date: Sun, 27 Mar 2022 11:12:18 +0200 Subject: [PATCH] Added tag and release action --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 996f856..5d14930 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,4 +19,20 @@ jobs: go-version: '^1.18' - name: Run build run: make + - name: Set version env + run: echo "CI_VERSION=$(cat VERSION | awk NF)" >> $GITHUB_ENV + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v6.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + custom_tag: ${{ env.CI_VERSION }} + - name: Create a GitHub release + uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ env.CI_VERSION }} + name: ${{ env.CI_VERSION }} + artifacts: "build/onedrive-uploader_*" + \ No newline at end of file