add action
This commit is contained in:
36
.gitea/workflows/source-release.yml
Normal file
36
.gitea/workflows/source-release.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
# .gitea/workflows/source-release.yml
|
||||
name: Source release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
source-package:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Configure
|
||||
run: cmake -S . -B build
|
||||
|
||||
- name: Build source package
|
||||
run: cmake --build build --target package_source
|
||||
|
||||
- name: List generated files
|
||||
run: |
|
||||
find build -maxdepth 2 \( -name '*.tar.bz2' -o -name '*.tbz2' -o -name '*.tar.gz' \) -print
|
||||
|
||||
- name: Upload workflow artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: mars-nwe-source-package
|
||||
path: |
|
||||
build/*.tar.bz2
|
||||
build/*.tbz2
|
||||
build/*.tar.gz
|
||||
if-no-files-found: error
|
||||
Reference in New Issue
Block a user