2024-10-02 17:01:21 +08:00
|
|
|
name: Release tag
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: [windows11]
|
|
|
|
steps:
|
2024-10-16 01:38:35 +08:00
|
|
|
- name: Clone repository
|
|
|
|
run: |
|
|
|
|
$branch = "${{ github.ref }}" -replace '^refs/heads/', ''
|
|
|
|
git clone --depth 1 --branch=$branch https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_PASSWORD }}@amass.fun/gitea/${{ gitea.repository }}.git .
|
|
|
|
git checkout ${{ github.sha }}
|
2024-10-02 17:01:21 +08:00
|
|
|
- name: Build and deploy
|
|
|
|
run: |
|
|
|
|
resources/build.ps1 build
|
|
|
|
resources/build.ps1 deploy
|
|
|
|
resources/build.ps1 changelog
|
|
|
|
- name: Upload Gitea Release
|
|
|
|
uses: akkuman/gitea-release-action@v1
|
|
|
|
with:
|
|
|
|
body_path: build/CHANGELOG.txt
|
|
|
|
files: |-
|
2024-10-16 01:38:35 +08:00
|
|
|
build/SmartLockerTools_${{ env.tag }}.zip
|