@@ -3,7 +3,6 @@ name: Build
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main", "master" ]
|
branches: [ "main", "master" ]
|
||||||
tags: [ "v*" ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main", "master" ]
|
branches: [ "main", "master" ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -11,11 +10,20 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
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
|
- name: Setup Tools Cache
|
||||||
id: tools-cache
|
id: tools-cache
|
||||||
@@ -88,7 +96,9 @@ jobs:
|
|||||||
path: unlocker.zip
|
path: unlocker.zip
|
||||||
|
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: ${{ github.event_name == 'push' }}
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
files: unlocker.zip
|
files: unlocker.zip
|
||||||
|
tag_name: v${{ steps.calculate-version.outputs.version-string }}
|
||||||
|
name: Release v${{ steps.calculate-version.outputs.version-string }}
|
||||||
|
|||||||
Reference in New Issue
Block a user