Skip to content

Commit

Permalink
工作流测试
Browse files Browse the repository at this point in the history
  • Loading branch information
ylsdamxssjxxdd committed Apr 23, 2024
1 parent 8f549e4 commit c692c00
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,55 +16,55 @@ jobs:

steps: # 具体步骤
# ---------安装依赖------------
- uses: actions/checkout@v3 # 进入该项目目录
- name: Set up Python ${{ matrix.python-version }} # 步骤名
uses: actions/setup-python@v3 # 安装python
with: # 完成后执行
python-version: ${{ matrix.python-version }} # 查看python版本
- name: Install dependencies # 步骤名
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
# - uses: actions/checkout@v3 # 进入该项目目录
# - name: Set up Python ${{ matrix.python-version }} # 步骤名
# uses: actions/setup-python@v3 # 安装python
# with: # 完成后执行
# python-version: ${{ matrix.python-version }} # 查看python版本
# - name: Install dependencies # 步骤名
# run: |
# python -m pip install --upgrade pip
# python -m pip install -r requirements.txt

# ------------配置Dependency Walker------------
- name: Checkout code
uses: actions/checkout@v3
# - name: Checkout code
# uses: actions/checkout@v3

- name: Create directories
run: |
New-Item -ItemType Directory -Force -Path "C:\Users\runneradmin\AppData\Local\Nuitka\Nuitka\Cache\downloads\depends\x86_64"
# - name: Create directories
# run: |
# New-Item -ItemType Directory -Force -Path "C:\Users\runneradmin\AppData\Local\Nuitka\Nuitka\Cache\downloads\depends\x86_64"

- name: Download Dependency Walker
run: |
Invoke-WebRequest -Uri "https://dependencywalker.com/depends22_x64.zip" -OutFile "temp_depends.zip"
# - name: Download Dependency Walker
# run: |
# Invoke-WebRequest -Uri "https://dependencywalker.com/depends22_x64.zip" -OutFile "temp_depends.zip"

- name: Create temp directory
run: |
New-Item -ItemType Directory -Force -Path temp/depends
# - name: Create temp directory
# run: |
# New-Item -ItemType Directory -Force -Path temp/depends

- name: Move downloaded file
run: |
Move-Item -Path temp_depends.zip -Destination temp/depends/depends22_x64.zip
# - name: Move downloaded file
# run: |
# Move-Item -Path temp_depends.zip -Destination temp/depends/depends22_x64.zip

- name: Extract Dependency Walker
run: |
Expand-Archive -Path temp/depends/depends22_x64.zip -DestinationPath C:\Users\runneradmin\AppData\Local\Nuitka\Nuitka\Cache\downloads\depends\x86_64
# - name: Extract Dependency Walker
# run: |
# Expand-Archive -Path temp/depends/depends22_x64.zip -DestinationPath C:\Users\runneradmin\AppData\Local\Nuitka\Nuitka\Cache\downloads\depends\x86_64
# ------------打包应用------------
# - name: Deploy infinity # 步骤名
# run: |
# pyside6-deploy -f main.py

# 上传 EXE 文件作为 GitHub 发布资产
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit c692c00

Please sign in to comment.