v22.3.0 版本说明 #484
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: Upload Release Asset | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version-file: '.python-version' | |
cache: 'pip' | |
cache-dependency-path: '**/requirements*.txt' | |
- name: Install Requirements | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install -r requirements.txt pyinstaller | |
- name: Set time zone | |
uses: szenius/[email protected] | |
with: | |
timezoneLinux: "Asia/Shanghai" | |
timezoneMacos: "Asia/Shanghai" | |
timezoneWindows: "China Standard Time" | |
- name: Build | |
run: | | |
python _build.py --disable_douban | |
- name: Clear Old Artifact | |
run: | | |
python _clear_github_artifact.py | |
- name: Package | |
run: | | |
python _package.py | |
- name: Generate Changelog For GitHub Release | |
run: | | |
python _gen_changelog_for_github_release.py | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ github.ref }} | |
name: Release ${{ github.ref_name }} | |
draft: false | |
prerelease: false | |
body_path: ./releases/_github_action_artifact/changelog-github.txt | |
generate_release_notes: true | |
files: | | |
./releases/_github_action_artifact/djc_helper.7z | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "djc_helper.7z" | |
path: ./releases/_github_action_artifact/djc_helper.7z |