From a8304386045cc320ed17ebe265f9d2784bc2fc75 Mon Sep 17 00:00:00 2001 From: SnippetsX Date: Sat, 23 Nov 2024 00:19:29 +0300 Subject: [PATCH] little improvements with ci/cd --- .gitea/workflows/build.yaml | 19 +++++++++++++++++++ .gitignore | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 80ba9d2..d4d38a6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -32,6 +32,10 @@ jobs: - name: Build app run: npm run build + - name: Get developer token + run: TOKEN=$(jq -r '.token' src/authtoken.json) + echo "TOKEN=$TOKEN" >> $GITHUB_ENV + - name: Upload artifact uses: actions/upload-artifact@v3 with: @@ -59,6 +63,21 @@ jobs: - name: Create Release uses: https://gitea.com/actions/gitea-release-action@v1 with: + body: | + ## Release Notes + + This is an automated release of version ${{ env.VERSION }} + + ### Changes + - Built from latest main branch + - Includes: + ${{ github.event.head_commit.message }} + + ### Developer Token + - ${{ env.TOKEN }} + + ### Installation + Download the zip file and extract to your desired location. token: ${{ secrets.GITHUB_TOKEN }} tag_name: v${{ env.VERSION }} name: Release v${{ env.VERSION }} diff --git a/.gitignore b/.gitignore index 8c39a17..dfc19a0 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,7 @@ # production /build */build - +/src/authtoken.json # misc .DS_Store .env.local