我正在尝试创建一个GitHub操作,它将使用Pynsist (与NSIS一起的package )生成一个构建文件夹,其中包含我的github存储库上的安装文件my。我想知道是否有人有一个YAML脚本的工作示例,可以使用github操作来执行以下操作:
docker).
任何建议都很感激。提前谢谢。
发布于 2021-02-20 18:12:16
下面的示例文件,我设法使用它来完成此任务。
on:
pull_request:
types: [closed]
branches: [master]
name: Create Release with merge file
jobs:
build:
runs-on: windows-latest
if: github.event.pull_request.merged == true
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python 3.7.9
uses: actions/setup-python@v1
with:
python-version: 3.7.9
architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pynsist==2.5
pip install six==1.14.0
pip install retrying==1.3.3
pip install numpy==1.18.1
pip install requests==2.22.0
pip install urllib3==1.25.8
pip install chardet==3.0.4
pip install certifi==2019.11.28
pip install idna==2.8
- name: Install 7Zip
run: |
choco install 7zip
- name: Run the build script
run: |
python App001_Build.pyhttps://stackoverflow.com/questions/61289322
复制相似问题