File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This is a basic workflow that is manually triggered
2+
3+ name : CI_release
4+
5+ # Controls when the workflow will run
6+ on :
7+ # Triggers the workflow on push or pull request events but only for the main branch
8+ push :
9+ tags :
10+ - ' v*'
11+ pull_request :
12+ branches : [ main ]
13+
14+ # Allows you to run this workflow manually from the Actions tab
15+ workflow_dispatch :
16+
17+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
18+ jobs :
19+ # This workflow contains a single job called "build"
20+ build :
21+ name : Build with pyinstaller@windows using wine@ubuntu
22+ # The type of runner that the job will run on
23+ runs-on : ubuntu-latest
24+ # Need wirte permission to release
25+ permissions : write-all
26+
27+ # Steps represent a sequence of tasks that will be executed as part of the job
28+ steps :
29+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
30+ - uses : actions/checkout@v3
31+
32+ # Cross-build the project using the container
33+ - name : Cross-compile using the container
34+ uses : addnab/docker-run-action@v3
35+ with :
36+ image : batonogov/pyinstaller-windows:3.1.6
37+ options : -v ${{ github.workspace }}:/src
38+ run : |
39+ /entrypoint.sh 2>&1 | tee build_$GITHUB_REF_NAME.log
40+ - name : Tar files
41+ run : tar -czvf RegTools_$GITHUB_REF_NAME.tar.gz -C dist .
42+ - uses : ncipollo/release-action@v1
43+ with :
44+ artifacts : " RegTools_${{ github.ref_name }}.tar.gz,build_${{ github.ref_name }}.log"
45+ # bodyFile: "body.md"
46+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments