[修改]1. 修改tag #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Release | |
on: | |
push: | |
tags: | |
- '*' | |
# branches: [main] | |
#schedule: | |
# 定时任务,每天 UTC 时间 0 点运行 | |
#- cron: "0 0 * * *" | |
#workflow_dispatch: | |
jobs: | |
tags: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # 为了 git pull --unshallow,我们需要获取所有的提交历史 | |
- name: Set up Git user | |
run: | | |
git config --global user.email "wangfj11@foxmail.com" | |
git config --global user.name "AlianBlank" | |
- name: change-version-by-tag | |
uses: AlianBlank/github-action-tag-version@0.0.6 | |
with: | |
version: ${{ github.ref_name }} | |
- run: echo "version - ${{ steps.info.outputs.currentVersion }}" |