Files
cache-nuget/.gitea/workflows/master.yaml
T

29 lines
776 B
YAML

on:
push:
branches:
- master
jobs:
calculate:
name: "CD > 計算版本號"
runs-on: ubuntu-latest
steps:
- name: 計算版本號
id: calculate
uses: https://gitea.housefun.com.tw/HP_TOOL/calculate-version-action@v${{ vars.CALCULATE_VERSION }}
with:
gitea-server: ${{ gitea.server_url }}
repository: ${{ gitea.repository }}
token: ${{ secrets.GITEA_TOKEN }}
outputs:
version: ${{ steps.calculate.outputs.VERSION }}
cd:
needs: [calculate]
name: "[CD] 發布專案"
runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
steps:
- name: 發布專案
uses: akkuman/gitea-release-action@v1
with:
tag_name: "v${{ needs.calculate.outputs.version }}"