Skip to content

Removing original files folder #110

Removing original files folder

Removing original files folder #110

Workflow file for this run

name: Auto-release
on:
push:
branches: [ "master" ]
tags:
- "*"
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
release-version:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r IfritAI/requirements.txt
pip install -r IfritXlsx/requirements.txt
pip install pyinstaller
python --version
pip freeze
- uses: milliewalky/setup-7-zip@v1
- name: Create xlsx release
shell: bash
run: |
cd IfritXlsx/
pyinstaller -n IfritXlsx -F --specpath release/build --distpath release --workpath release/build main.py
cp -r Resources/ release/
mkdir -p release/OriginalFiles/
mkdir -p release/OutputFiles/
rm -r release/build
cd release
ls -al
cd ..
cd ..
- name: Create ai release
shell: bash
run: |
cd IfritAI/
pyinstaller -n IfritAI -F --specpath release/build --distpath release --workpath release/build --onefile --icon=../../Resources/icon.ico main.py
mkdir -p release/FF8GameData
cp -R Resources release/
cp -R ../FF8GameData/Resources release/FF8GameData/
cd release
rm -r build
ls -al
cd ..
- name: Create full release - Start
shell: bash
run: |
mkdir -p release/IfritEnhanced
mkdir -p release/IfritEnhanced/IfritGui
mkdir -p release/IfritEnhanced/IfritAI
mkdir -p release/IfritEnhanced/IfritXlsx
cp -R IfritAI/release/* release/IfritEnhanced/IfritAI/
cp -R IfritXlsx/release/* release/IfritEnhanced/IfritXlsx/
cp -R IfritGui/publish/* release/IfritEnhanced/IfritGui/
rm -rf IfritAI/release
rm -rf IfritXlsx/release
- name: zip name continuous
shell: bash
if: github.event.ref_type != 'tag' && github.ref == 'refs/heads/master'
run: |
cd release/IfritEnhanced
7z a -tzip "../IfritEnhanced-continuous-${{ github.sha}}.zip" .
pwd
cd ..
ls -al
cd ..
ls -al
- name: zip name tag
shell: bash
if: startsWith(github.ref, 'refs/tags/')
run: |
cd release/IfritEnhanced
7z a -tzip "../IfritEnhanced-${{ github.ref_name }}.zip" .
- name: Deploy Package
if: github.event.ref_type != 'tag' && github.ref == 'refs/heads/master'
uses: crowbarmaster/GH-Automatic-Releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "continuous"
prerelease: true
title: "Unstable Build"
files: |
release/IfritEnhanced-*.zip
- name: Deploy tag Package
if: startsWith(github.ref, 'refs/tags/')
uses: crowbarmaster/GH-Automatic-Releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: ${{ github.ref_name }}
title: "IfritEnhanced-${{ github.ref_name }}"
files: |
release/IfritEnhanced-*.zip