reverting to the old commit

This commit is contained in:
Nabeen Tiwaree 2023-06-13 22:14:40 +05:45 committed by GitHub
parent e33fb750b7
commit a6eac36928
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
# GHW workflow to build metislinux iso # GHW workflow to build metislinux iso
name: Build Metis Linux ISO per Release name: build metis iso per release
on: on:
push: push:
@ -7,7 +7,6 @@ env:
api_key: ${{ secrets.GITHUB_TOKEN }} api_key: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.event.repository.name }} name: ${{ github.event.repository.name }}
release_name: ${{ github.ref_name }} release_name: ${{ github.ref_name }}
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -17,11 +16,11 @@ jobs:
options: --privileged options: --privileged
steps: steps:
- name: Cloning the repository # - name: Cloning the repository! please wait...
uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Installing artools in the system
- name: Installing artools and dependencies
run: | run: |
pacman --noconfirm -Sy ruby artools iso-profiles man-pages man pacman --noconfirm -Sy ruby artools iso-profiles man-pages man
- name: Setting up filesystem for the build - name: Setting up filesystem for the build
@ -32,44 +31,31 @@ jobs:
mkdir -p /var/lib/artools mkdir -p /var/lib/artools
mount /dev/loop3 /var/lib/artools mount /dev/loop3 /var/lib/artools
- name: Building image (may take up to 6 minutes) - name: Building image may takes up to 6 minutes..
run: | run: |
mkdir ~/artools-workspace/iso-profiles -p mkdir ~/artools-workspace/iso-profiles -p
cp base ~/artools-workspace/iso-profiles -r cp base ~/artools-workspace/iso-profiles -r
mkdir ~/.config/artools -p mkdir ~/.config/artools -p
cp config/pacman.conf /usr/share/artools/pacman.conf.d/default.conf cp config/pacman.conf /usr/share/artools/pacman.conf.d/default.conf
cp -r config/me* /etc/pacman.d/ cp -r config/me* /etc/pacman.d/
./build-iso.sh ./build-iso.sh
#buildiso -q -i runit
#buildiso -p base -i runit -t iso
echo "NOW=$(date +'%Y%m%d')" >> $GITHUB_ENV echo "NOW=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Find ISO path and name - name: Find ISO path and name
id: find_iso
run: | run: |
ISO_PATH=$(find ~/artools-workspace/iso -name "artix-base-runit-${{ env.NOW }}-x86_64.iso" | head -n 1) ISO_PATH=$(find ~/artools-workspace/iso -name "artix-base-runit-${{ env.NOW }}-x86_64.iso" | head -n 1)
echo "ISO_PATH=$ISO_PATH" >> $GITHUB_ENV echo "ISO_PATH=$ISO_PATH" >> $GITHUB_ENV
echo "::set-output name=iso_path::$ISO_PATH"
- name: Generate SHA256 checksum - name: Uploading image to releases
id: generate_checksum
run: |
CHECKSUM=$(sha256sum "${{ steps.find_iso.outputs.iso_path }}" | awk '{print $1}')
echo "CHECKSUM=$CHECKSUM" >> $GITHUB_ENV
echo "::set-output name=checksum::$CHECKSUM"
- name: Create checksum file
run: |
echo "${{ steps.generate_checksum.outputs.checksum }} ${{ steps.find_iso.outputs.iso_path }}" > checksum.txt
- name: Upload image and checksum to releases
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
files: | file: ${{ env.ISO_PATH }}
${{ steps.find_iso.outputs.iso_path }} asset_name: metis-linux-runit-${{ env.NOW }}-x86_64.iso
checksum.txt
asset_names: |
metis-linux-runit-${{ env.NOW }}-x86_64.iso
metis-linux-runit-${{ env.NOW }}-x86_64.iso.sha256
tag: MetisLinux-${{ env.NOW }} tag: MetisLinux-${{ env.NOW }}
overwrite: true overwrite: true
body: This is the release of Metis Linux ISO on ${{ env.NOW }} body: This is the release of Metis Linux ISO on ${{ env.NOW }}