Skip to content

Commit

Permalink
- first try of making the build process more transparent ( #40 )
Browse files Browse the repository at this point in the history
  • Loading branch information
EchterAlsFake committed Jun 7, 2024
1 parent 85ab0a1 commit e3826eb
Show file tree
Hide file tree
Showing 6 changed files with 204 additions and 4 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build_cli_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,50 @@ jobs:
with:
name: PornFetch_CLI_Linux_x32
path: dist/Porn_Fetch_CLI

create-release:
needs: [build-pornfetch-cli-linux-64, build-pornfetch-cli-linux-32]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Download Linux x64 artifact
uses: actions/download-artifact@v2
with:
name: PornFetch_CLI_Linux_x64
path: ./artifacts

- name: Download Linux x32 artifact
uses: actions/download-artifact@v2
with:
name: PornFetch_CLI_Linux_x32
path: ./artifacts

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v1.0.0-automated-${{ github.run_number }}
release_name: Automated Release v1.0.0-${{ github.run_number }}
body: |
This is an automated release generated by the CI/CD pipeline.
draft: false
prerelease: false

- name: Upload Linux x64 artifact to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/Porn_Fetch_CLI
asset_name: PornFetch_CLI_Linux_x64
asset_content_type: application/gzip

- name: Upload Linux x32 artifact to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/Porn_Fetch_CLI
asset_name: PornFetch_CLI_Linux_x32
asset_content_type: application/gzip
50 changes: 49 additions & 1 deletion .github/workflows/build_cli_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,52 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: PornFetch_CLI_Windows_x32
path: dist/Porn_Fetch_CLI.exe
path: dist/Porn_Fetch_CLI.exe

create-release:
needs: [build-pornfetch-cli-windows-x64, build-pornfetch-cli-windows-x32]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download Windows x64 artifact
uses: actions/download-artifact@v2
with:
name: PornFetch_CLI_Windows_x64
path: ./artifacts

- name: Download Windows x32 artifact
uses: actions/download-artifact@v2
with:
name: PornFetch_CLI_Windows_x32
path: ./artifacts

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v1.0.0-automated-${{ github.run_number }}
release_name: Automated Release v1.0.0-${{ github.run_number }}
body: |
This is an automated release generated by the CI/CD pipeline.
draft: false
prerelease: false

- name: Upload Windows x64 artifact to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/Porn_Fetch_CLI.exe
asset_name: PornFetch_CLI_Windows_x64.exe
asset_content_type: application/octet-stream

- name: Upload Windows x32 artifact to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/Porn_Fetch_CLI.exe
asset_name: PornFetch_CLI_Windows_x32.exe
asset_content_type: application/octet-stream
36 changes: 35 additions & 1 deletion .github/workflows/build_gui_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,38 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: pyside6-application-x64
path: deploy/main.bin
path: deploy/main.bin

create-release:
needs: build-pornfetch-gui-linux-x64
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download Linux x64 artifact
uses: actions/download-artifact@v2
with:
name: pyside6-application-x64
path: ./artifacts

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v1.0.0-automated-${{ github.run_number }}
release_name: Automated Release v1.0.0-${{ github.run_number }}
body: |
This is an automated release generated by the CI/CD pipeline.
draft: false
prerelease: false

- name: Upload Linux x64 artifact to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/main.bin
asset_name: PornFetch_GUI_Linux_x64.bin
asset_content_type: application/octet-stream
36 changes: 35 additions & 1 deletion .github/workflows/build_gui_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,38 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: pyside6-application-macos
path: deploy/main.app
path: deploy/main.app

create-release:
needs: build-pornfetch-gui-linux-x64
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download Linux x64 artifact
uses: actions/download-artifact@v2
with:
name: pyside6-application-x64
path: ./artifacts

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v1.0.0-automated-${{ github.run_number }}
release_name: Automated Release v1.0.0-${{ github.run_number }}
body: |
This is an automated release generated by the CI/CD pipeline.
draft: false
prerelease: false

- name: Upload Linux x64 artifact to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/main.bin
asset_name: PornFetch_GUI_Linux_x64.bin
asset_content_type: application/octet-stream
36 changes: 35 additions & 1 deletion .github/workflows/build_gui_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,38 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: pyside6-application-windows-x64
path: deploy/main.exe
path: deploy/main.exe

create-release:
needs: build-pornfetch-gui-windows-x64
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download Windows x64 artifact
uses: actions/download-artifact@v2
with:
name: pyside6-application-windows-x64
path: ./artifacts

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v1.0.0-automated-${{ github.run_number }}
release_name: Automated Release v1.0.0-${{ github.run_number }}
body: |
This is an automated release generated by the CI/CD pipeline.
draft: false
prerelease: false

- name: Upload Windows x64 artifact to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/main.exe
asset_name: PornFetch_GUI_Windows_x64.exe
asset_content_type: application/octet-stream
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ Thank you all, I'll let you know when it's fixed. For updates, please refer to t
<img alt="GitHub all releases" src="https://img.shields.io/github/downloads/EchterAlsFake/Porn_Fetch/total?style=social&logo=github&logoColor=purple">
<br>

2 parents 684a0ae + 6399217
commit b34f733

---

**[<kbd><strong>&nbsp;<br>&nbsp;Download (v3.3)&nbsp;<br>&nbsp;</strong></kbd>](https://github.com/EchterAlsFake/Porn_Fetch/releases/tag/3.3)**
Expand Down

0 comments on commit e3826eb

Please sign in to comment.