build: add semantic versioning
Build / build (push) Failing after 1m7s

This commit is contained in:
2026-03-20 23:03:19 -03:00
parent 075590e9b9
commit 4197b4f52e
+13 -3
View File
@@ -3,7 +3,6 @@ name: Build
on:
push:
branches: [ "main", "master" ]
tags: [ "v*" ]
pull_request:
branches: [ "main", "master" ]
workflow_dispatch:
@@ -11,11 +10,20 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- name: Configure version information
id: calculate-version
if: ${{ github.event_name == 'push' }}
uses: bitshifted/git-auto-semver@v2
with:
create_tag: true
initial_version: 0.2.0
- name: Setup Tools Cache
id: tools-cache
@@ -88,7 +96,9 @@ jobs:
path: unlocker.zip
- name: Create Gitea Release
if: startsWith(github.ref, 'refs/tags/')
if: ${{ github.event_name == 'push' }}
uses: akkuman/gitea-release-action@v1
with:
files: unlocker.zip
tag_name: v${{ steps.calculate-version.outputs.version-string }}
name: Release v${{ steps.calculate-version.outputs.version-string }}