Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed broken REPO url link #4

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
permissions:
contents: write
pull-requests: write
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
tag_name: v${{ env.BUILD_DATE }}
release_name: v${{ env.BUILD_DATE }}
body: |
Automated release powered by GitHub Actions.
Automated ISO release powered by GitHub Actions.

- name: Upload ISO as Release Asset
id: upload_asset
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build and Release ISO

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
container:
image: archlinux/archlinux:latest
options: --privileged

steps:
- name: Checkout repository using git
run: |
pacman -Sy git sudo archiso grub --noconfirm
git clone --recurse-submodules https://github.com/${{ github.repository }} StratOS-iso

- name: Set up environment
run: |
export BUILD_DATE=$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)
echo "BUILD_DATE=${BUILD_DATE}" >> $GITHUB_ENV
echo "::set-output name=date::${BUILD_DATE}"

- name: Build ISO
id: build_iso
run: |
cd StratOS-iso
sudo bash ./build.sh

- name: Create GitHub Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.BUILD_DATE }}
release_name: v${{ env.BUILD_DATE }}
body: |
Automated release powered by GitHub Actions.

- name: Upload ISO as Release Asset
id: upload_asset
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: StratOS-iso/output/StratOS-${{ env.BUILD_DATE }}-x86_64.iso
asset_name: StratOS-${{ env.BUILD_DATE }}-x86_64.iso
asset_content_type: application/octet-stream
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
output/*
!output/StratOS-*.iso
output.bak/
output.bak/
4 changes: 2 additions & 2 deletions pacman.conf
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ Include = /etc/pacman.d/mirrorlist
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

[StratOS-repo]
[stratos]
SigLevel = Optional TrustAll
Server = https://StratOS-Linux.github.io/StratOS-repo/x86_64
Server = https://StratOS-Linux.github.io/StratOS-repo/x86_64