Skip to content

Commit f4fa3f7

Browse files
authored
add release steps
1 parent 2dbc309 commit f4fa3f7

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/iso-build.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v3
2323

24-
- name: Update packages and install archiso
24+
- name: Set current date as environment variable
25+
run: echo "DATE=`date +'%Y.%m.%d'`" >>$GITHUB_ENV
26+
27+
- name: Synchronise package repositories and install archiso
2528
run: pacman -Syu --noconfirm archiso mkinitcpio-archiso git squashfs-tools
2629

27-
- name: Build ISO
30+
- name: Build TCET Linux ISO
2831
run: |
2932
pacman -S --noconfirm --needed archlinux-keyring wget
3033
wget https://raw.githubusercontent.com/theCode-Breaker/arch-linux-gui-gnome/master/pacman.conf -O /etc/pacman.conf
@@ -33,3 +36,14 @@ jobs:
3336
#pacman-key --populate archlinux chaotic
3437
mkarchiso -v -w ./work -o ./out ./
3538
echo "ISO Built in ./out folder!"
39+
40+
- name: Release ISO File
41+
uses: "marvinpinto/action-automatic-releases@latest"
42+
with:
43+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
44+
automatic_release_tag: ${{ env.DATE }}
45+
prerelease: false
46+
title: "tcet-linux"
47+
files: |
48+
out/*
49+

0 commit comments

Comments
 (0)