mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-02-16 19:35:39 +00:00
WF: removed mount unstucker, let's see if we need this again.
This commit is contained in:
parent
31358a00b3
commit
55afeaf3a5
8
.github/workflows/cooker-selfhosted.yml
vendored
8
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -17,9 +17,9 @@ jobs:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Remove stuck mounts
|
# - name: Remove stuck mounts
|
||||||
run: sudo umount -f /home/administrator/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/*
|
# run: sudo umount -f /home/administrator/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/*
|
||||||
continue-on-error: true
|
# continue-on-error: true
|
||||||
|
|
||||||
- name: Generate build ID
|
- name: Generate build ID
|
||||||
id: generating_buildid
|
id: generating_buildid
|
||||||
|
@ -64,7 +64,7 @@ jobs:
|
||||||
- name: Publish the flatpak in a new cooker release
|
- name: Publish the flatpak in a new cooker release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
tag: "${{ steps.generating_buildid.outputs.build-id }}"
|
tag: "${GITHUB_REF##*/}-${{ steps.generating_buildid.outputs.build-id }}"
|
||||||
body: |
|
body: |
|
||||||
# Release Notes (Cooker)
|
# Release Notes (Cooker)
|
||||||
This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{github.sha}}.
|
This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{github.sha}}.
|
||||||
|
|
30
.github/workflows/main-selfhosted.yml
vendored
30
.github/workflows/main-selfhosted.yml
vendored
|
@ -17,9 +17,9 @@ jobs:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Remove stuck mounts
|
# - name: Remove stuck mounts
|
||||||
run: sudo umount -f /home/administrator/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/*
|
# run: sudo umount -f /home/administrator/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/*
|
||||||
continue-on-error: true
|
# continue-on-error: true
|
||||||
|
|
||||||
- name: Generate build ID
|
- name: Generate build ID
|
||||||
id: generating_buildid
|
id: generating_buildid
|
||||||
|
@ -32,7 +32,7 @@ jobs:
|
||||||
git pull
|
git pull
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
sudo apt install -y flatpak flatpak-builder p7zip-full
|
sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet
|
||||||
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
flatpak install --user -y --noninteractive \
|
flatpak install --user -y --noninteractive \
|
||||||
org.kde.Sdk//6.3 \
|
org.kde.Sdk//6.3 \
|
||||||
|
@ -59,19 +59,27 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
flatpak build-bundle ${GITHUB_WORKSPACE}/local RetroDECK.flatpak net.retrodeck.retrodeck
|
flatpak build-bundle ${GITHUB_WORKSPACE}/local RetroDECK.flatpak net.retrodeck.retrodeck
|
||||||
|
|
||||||
|
- name: Getting version info
|
||||||
|
id: version
|
||||||
|
run: |
|
||||||
|
appdata="https://raw.githubusercontent.com/XargonWan/RetroDECK/main/net.retrodeck.retrodeck.appdata.xml"
|
||||||
|
REL_VER=$(curl -s $appdata | xmlstarlet sel -t -v "//release/@version" | head -1)
|
||||||
|
DES="$(curl -s $appdata | xmlstarlet sel -t -m "//release[1]" -v "description" -n | sed '1,2d;$d;s/^ */- /;/^- $/d')"
|
||||||
|
echo "REL_VER=$REL_VER" >> $GITHUB_ENV
|
||||||
|
echo -e "# Release Notes\n" >> "body.md"
|
||||||
|
echo "$DES" >> "body.md"
|
||||||
|
|
||||||
- name: Publish the flatpak in a new release
|
- name: Publish the flatpak in a new release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
|
env:
|
||||||
|
REL_VER: ${{ env.REL_VER }}
|
||||||
with:
|
with:
|
||||||
tag: "${{ steps.generating_buildid.outputs.build-id }}"
|
tag: ${{ env.REL_VER }}
|
||||||
body: |
|
name: "RetroDECK v${{ env.REL_VER }}"
|
||||||
# Release Notes
|
bodyFile: "body.md"
|
||||||
|
|
||||||
( Write release notes here )
|
|
||||||
|
|
||||||
artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
|
artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
draft: true
|
|
||||||
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
||||||
repo: RetroDECK
|
repo: RetroDECK
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
Loading…
Reference in a new issue