Skip to content

Commit

Permalink
Add tag creation because every release requires a tag, and reinstate …
Browse files Browse the repository at this point in the history
…some of the installer build steps

Signed-off-by: Jim Hawkins <sjjhsjjhsjjh@gmail.com>
  • Loading branch information
sjjhsjjh committed Apr 16, 2024
1 parent 59c6521 commit 6fd6db2
Showing 1 changed file with 40 additions and 26 deletions.
66 changes: 40 additions & 26 deletions .github/workflows/windows-build-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,35 +59,49 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.10"
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# - name: Freeze Installer
# run: |
# pyinstaller build.spec
# - name: Build Installer
# run: |
# iscc installer.iss
# - name: Freeze Portable
# run: |
# pyinstaller --distpath dist-portable build-portable.spec
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Freeze Installer
run: |
pyinstaller build.spec
- name: Build Installer
run: |
iscc installer.iss
- name: Freeze Portable
run: |
pyinstaller --distpath dist-portable build-portable.spec
- name: Zip Portable
shell: pwsh
run: |
Copy-Item -Path assets -Destination dist-portable\ -Recurse
Copy-Item -Path configs -Destination dist-portable\ -Recurse
Compress-Archive -Path dist-portable -DestinationPath \
FaceCommander-Portable-$Env:VersionNumber".zip"
- name: Create tag
id: create_tag
uses: actions/github-script@v7
with:
# https://stackoverflow.com/a/64479344/7657675
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: refs/tags/v${{needs.check.outputs.VersionNumber}},
sha: context.sha
})
- name: Demo version number
run: |
New-Item delme-$Env:VersionNumber".txt" -type file
# - name: Zip Portable
# shell: pwsh
# run: |
# Copy-Item -Path assets -Destination dist-portable\ -Recurse
# Copy-Item -Path configs -Destination dist-portable\ -Recurse
# Compress-Archive -Path dist-portable -DestinationPath \
# FaceCommander-Portable-$Env:VersionNumber".zip"
New-Item delme-env-$Env:VersionNumber".txt" -type file
# - name: release
# uses: softprops/action-gh-release@v1
# with:
# files: |
# Output/FaceCommander-Installer-${{needs.check.outputs.VersionNumber}}.exe
# FaceCommander-Portable-${{needs.check.outputs.VersionNumber}}.zip
# tag_name: ${{needs.check.outputs.VersionNumber}}
# draft: false
# prerelease: false
# Output/FaceCommander-Installer-v${{needs.check.outputs.VersionNumber}}.exe
# FaceCommander-Portable-v${{needs.check.outputs.VersionNumber}}.zip
# name: v${{needs.check.outputs.VersionNumber}}
# draft: true
# prerelease: true
# fail_on_unmatched_files: true

0 comments on commit 6fd6db2

Please sign in to comment.