little improvements with ci/cd

This commit is contained in:
SnippetsX 2024-11-23 00:19:29 +03:00
parent 65e8404592
commit a830438604
2 changed files with 20 additions and 1 deletions

View File

@ -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 }}

2
.gitignore vendored
View File

@ -13,7 +13,7 @@
# production
/build
*/build
/src/authtoken.json
# misc
.DS_Store
.env.local