mirror of
https://github.com/Mexit/AlpDock.git
synced 2025-04-26 15:59:53 +03:00
Update release action
This commit is contained in:
parent
1ef1a34708
commit
7a8356ff1f
1 changed files with 32 additions and 7 deletions
39
.github/workflows/build_iso.yml
vendored
39
.github/workflows/build_iso.yml
vendored
|
@ -10,13 +10,11 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_ISOs:
|
build_ISOs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-24.04
|
||||||
container:
|
container:
|
||||||
image: alpine:3.20
|
image: alpine:3.20
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install software
|
- name: Install software
|
||||||
run: |
|
run: |
|
||||||
apk update
|
apk update
|
||||||
|
@ -25,6 +23,10 @@ jobs:
|
||||||
busybox fakeroot syslinux xorriso squashfs-tools sudo mtools \
|
busybox fakeroot syslinux xorriso squashfs-tools sudo mtools \
|
||||||
dosfstools grub-efi
|
dosfstools grub-efi
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Download aports
|
- name: Download aports
|
||||||
run: git clone --depth=1 https://gitlab.alpinelinux.org/alpine/aports.git
|
run: git clone --depth=1 https://gitlab.alpinelinux.org/alpine/aports.git
|
||||||
|
|
||||||
|
@ -45,9 +47,32 @@ jobs:
|
||||||
--repository https://dl-cdn.alpinelinux.org/alpine/${version}/main \
|
--repository https://dl-cdn.alpinelinux.org/alpine/${version}/main \
|
||||||
--repository https://dl-cdn.alpinelinux.org/alpine/${version}/community
|
--repository https://dl-cdn.alpinelinux.org/alpine/${version}/community
|
||||||
|
|
||||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
- name: Upload files
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
name: files
|
||||||
prerelease: false
|
path: .
|
||||||
files: |
|
include-hidden-files: true
|
||||||
|
|
||||||
|
release_ISOs:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
needs: build_ISOs
|
||||||
|
steps:
|
||||||
|
- name: Download files
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: files
|
||||||
|
|
||||||
|
- name: Release AlpDock ISO
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
run: |
|
||||||
|
echo -e "Changelog\n---------" > changelog.txt
|
||||||
|
git log --reverse --pretty=format:"%h %s" $(git describe --tags --abbrev=0 HEAD^)..HEAD >> changelog.txt
|
||||||
|
|
||||||
|
gh release create ${{ github.ref_name }} \
|
||||||
|
--verify-tag \
|
||||||
|
--latest \
|
||||||
|
--draft \
|
||||||
|
--notes-file changelog.txt \
|
||||||
*.iso
|
*.iso
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue