Skip to content

Pro Release

Pro Release #11

Workflow file for this run

name: Pro Release
on:
push:
tags:
- '*v'
workflow_run:
workflows:
- 'Pro Bump'
types:
- completed
permissions:
contents: write
env:
tag: '-'
jobs:
release:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main
- uses: actions/download-artifact@v3
- run: ls -alhR
- name: 读取版本号
run: |
# 读取配置文件路径
projectFile=$(find $(pwd) -type f -name "*.pbxproj" | head -n 1)
# 读取文件中的版本号
version=$(grep -o 'MARKETING_VERSION = [^"]*' $projectFile | head -n 1 | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+')
echo "版本号->$version"
echo "tag=v$version" >> $GITHUB_ENV
- name: Generate Changelog
run: echo ""> ${{ github.workspace }}-CHANGELOG.txt
- uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.tag }}
body_path: ${{ github.workspace }}-CHANGELOG.txt
files: |
./**/*.dmg
./**/*.zip
./**/*.exe
./**/*.pkg
./**/*.deb
./**/*.ipa
./**/*.AppImage
./**/*.snap