build: update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-11-12 17:02:13 +01:00
parent b036a2aef2
commit f44a142d01
2 changed files with 13 additions and 11 deletions

View File

@ -11,7 +11,7 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
runs: runs:
description: "runs-on (ubuntu-latest / self-hosted)" description: "runs-on"
type: choice type: choice
options: options:
- ubuntu-latest - ubuntu-latest
@ -38,7 +38,7 @@ jobs:
# Install Dependencies # Install Dependencies
- name: Install Dependencies - name: Install Dependencies
if: ${{ github.event.inputs.runs == 'ubuntu-latest' }} if: ${{ inputs.runs == 'ubuntu-latest' }}
run: | run: |
git config --global user.email "info@auxxxilium.tech" git config --global user.email "info@auxxxilium.tech"
git config --global user.name "AuxXxilium" git config --global user.name "AuxXxilium"
@ -83,7 +83,7 @@ jobs:
# Build incremental # Build incremental
- name: Build Next Image - name: Build Next Image
if: inputs.next == true if: ${{ inputs.next == true }}
run: | run: |
. scripts/func.sh . scripts/func.sh
@ -139,6 +139,7 @@ jobs:
# Zip image and generate checksum # Zip image and generate checksum
- name: Pack Next Image - name: Pack Next Image
if: ${{ inputs.next == true }}
run: | run: |
if [ -n "${{ env.ARC_VERSION }}" ]; then if [ -n "${{ env.ARC_VERSION }}" ]; then
zip -9 "arc-${{ env.ARC_VERSION }}-${{ env.ARC_BRANCH }}.img.zip" arc.img zip -9 "arc-${{ env.ARC_VERSION }}-${{ env.ARC_BRANCH }}.img.zip" arc.img
@ -155,7 +156,7 @@ jobs:
# Build incremental # Build incremental
- name: Build Stable Image - name: Build Stable Image
if: inputs.stable == true if: ${{ inputs.stable }}
run: | run: |
. scripts/func.sh . scripts/func.sh
@ -211,6 +212,7 @@ jobs:
# Zip image and generate checksum # Zip image and generate checksum
- name: Pack Stable Image - name: Pack Stable Image
if: ${{ inputs.stable }}
run: | run: |
if [ -n "${{ env.ARC_VERSION }}" ]; then if [ -n "${{ env.ARC_VERSION }}" ]; then
zip -9 "arc-${{ env.ARC_VERSION }}-${{ env.ARC_BRANCH }}.img.zip" arc.img zip -9 "arc-${{ env.ARC_VERSION }}-${{ env.ARC_BRANCH }}.img.zip" arc.img

View File

@ -11,7 +11,7 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
runs: runs:
description: "runs-on (ubuntu-latest / self-hosted)" description: "runs-on"
type: choice type: choice
options: options:
- ubuntu-latest - ubuntu-latest
@ -53,7 +53,7 @@ jobs:
uses: actions/checkout@main uses: actions/checkout@main
- name: Delete releases and workflows runs - name: Delete releases and workflows runs
if: ${{ inputs.clean }} == 'true' if: ${{ inputs.clean == true }}
uses: ophub/delete-releases-workflows@main uses: ophub/delete-releases-workflows@main
with: with:
delete_releases: true delete_releases: true
@ -64,7 +64,7 @@ jobs:
# Install Dependencies # Install Dependencies
- name: Install Dependencies - name: Install Dependencies
if: ${{ github.event.inputs.runs == 'ubuntu-latest' }} if: ${{ inputs.runs == 'ubuntu-latest' }}
run: | run: |
git config --global user.email "info@auxxxilium.tech" git config --global user.email "info@auxxxilium.tech"
git config --global user.name "AuxXxilium" git config --global user.name "AuxXxilium"
@ -109,7 +109,7 @@ jobs:
# Build incremental # Build incremental
- name: Build Next Image - name: Build Next Image
if: inputs.next == true if: ${{ inputs.next == true }}
run: | run: |
. scripts/func.sh . scripts/func.sh
@ -168,7 +168,7 @@ jobs:
# Zip image and generate checksum # Zip image and generate checksum
- name: Pack Next Image - name: Pack Next Image
if: inputs.next == true if: ${{ inputs.next == true }}
run: | run: |
if [ -n "${{ env.ARC_VERSION }}" ]; then if [ -n "${{ env.ARC_VERSION }}" ]; then
zip -9 "arc-${{ env.ARC_VERSION }}-${{ env.ARC_BRANCH }}.img.zip" arc.img zip -9 "arc-${{ env.ARC_VERSION }}-${{ env.ARC_BRANCH }}.img.zip" arc.img
@ -186,7 +186,7 @@ jobs:
# Build incremental # Build incremental
- name: Build Stable Image - name: Build Stable Image
if: inputs.stable == true if: ${{ inputs.stable == true }}
run: | run: |
. scripts/func.sh . scripts/func.sh
@ -245,7 +245,7 @@ jobs:
# Zip image and generate checksum # Zip image and generate checksum
- name: Pack Stable Image - name: Pack Stable Image
if: inputs.stable == true if: ${{ inputs.stable == true }}
run: | run: |
if [ -n "${{ env.ARC_VERSION }}" ]; then if [ -n "${{ env.ARC_VERSION }}" ]; then
zip -9 "arc-${{ env.ARC_VERSION }}-${{ env.ARC_BRANCH }}.img.zip" arc.img zip -9 "arc-${{ env.ARC_VERSION }}-${{ env.ARC_BRANCH }}.img.zip" arc.img