Skip to content

Commit

Permalink
Modify app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HobbitDur committed Oct 30, 2024
1 parent 27132c0 commit 88ca243
Showing 1 changed file with 25 additions and 35 deletions.
60 changes: 25 additions & 35 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

jobs:
create_assets:
release-version:
runs-on: windows-latest
steps:
- name: Checkout repository
Expand Down Expand Up @@ -75,43 +75,33 @@ jobs:
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: Upload artifact
uses: actions/upload-artifact@v4
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:
name: "artifact-${{ github.sha}}"
path: ${{ github.workspace }}/release/
release_assets:
name: Release
needs:
- create_assets
runs-on: windows-latest
concurrency: release-${{ github.ref }}
steps:
- name: Download Files
uses: actions/download-artifact@v4
- 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/artifact-*/*
- 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/artifact-*/*
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: ${{ github.ref_name }}
title: "IfritEnhanced-${{ github.ref_name }}"
files: |
release/IfritEnhanced-*.zip

0 comments on commit 88ca243

Please sign in to comment.