Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GutPuncher authored Mar 11, 2024
1 parent fea705b commit 20d61b5
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build

on:
push:
branches:
- 'master'
paths-ignore:
- '**.md'
- '**/LICENSE'
pull_request:
branches:
- 'master'
paths-ignore:
- '**.md'
- '**/LICENSE'
workflow_dispatch:

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'true'

- name: Install Dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install build-essential git xorriso
- name: Build
if: ${{ success() }}
run: |
git clone https://github.com/Zeal-Operating-System/3rdParty.git
mv -f ./3rdParty/Lib/ ./Lib/
rm -rf ./3rdParty/
mkdir ISO_OUT
cp -rf ./* ./ISO_OUT
rm -rf ./ISO_OUT/ISO_OUT
xorriso -joliet "on" -rockridge "on" -as mkisofs ./ISO_OUT -o bakers-doom.iso
- name: Releasing Latest ISO
if: ${{ success() && github.event_name == 'push'}}
uses: "GutPuncher/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Build [${{ github.sha }}]"
files: ./*.iso

- name: OK
if: ${{ success() }}
run: |
echo "Build OK"

0 comments on commit 20d61b5

Please sign in to comment.