Update update-os.yml
This commit is contained in:
parent
c0794d7e6d
commit
af1ac7b20d
13
.github/workflows/update-os.yml
vendored
13
.github/workflows/update-os.yml
vendored
@ -9,8 +9,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
env:
|
||||||
|
CURRENT_DATE: ${{ steps.set_date.outputs.date }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set Date
|
||||||
|
id: set_date
|
||||||
|
run: echo "date=$(date +'%y%m%d')" >> $GITHUB_ENV
|
||||||
- name: Build Raspberry Pi OS
|
- name: Build Raspberry Pi OS
|
||||||
uses: pguyot/arm-runner-action@v2
|
uses: pguyot/arm-runner-action@v2
|
||||||
id: build_image
|
id: build_image
|
||||||
@ -84,9 +89,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Compress the release image
|
- name: Compress the release image
|
||||||
run: |
|
run: |
|
||||||
current_date=$(date +'%y%m%d')
|
mv ${{ steps.build_image.outputs.image }} "InkycalOS_Lite_${CURRENT_DATE}.img"
|
||||||
mv ${{ steps.build_image.outputs.image }} "InkycalOS_Lite_${current_date}.img"
|
xz -0 -T 0 -v "InkycalOS_Lite_${CURRENT_DATE}.img"
|
||||||
xz -0 -T 0 -v "InkycalOS_Lite_${current_date}.img"
|
|
||||||
|
|
||||||
- name: Get latest release version
|
- name: Get latest release version
|
||||||
run: |
|
run: |
|
||||||
@ -98,6 +102,7 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
FILES: "InkycalOS_Lite_${CURRENT_DATE}.img.xz"
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.version }}
|
tag_name: ${{ env.version }}
|
||||||
files: "InkycalOS_Lite_${current_date}.img.xz"
|
files: ${{ env.FILES }}
|
||||||
|
Loading…
Reference in New Issue
Block a user