Update tests.yml

This commit is contained in:
Ace 2023-07-23 20:46:24 +02:00 committed by GitHub
parent 8c56ee8817
commit db77b876bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,13 +88,20 @@ jobs:
mv ${{ steps.build_image.outputs.image }} inkycal_os.img
xz -0 -T 0 -v inkycal_os.img
ls
- name: Get latest release version
run: |
export tag="$(curl -s https://api.github.com/repos/aceinnolab/Inkycal/releases/latest | jq -r '.tag_name')"
echo "version=${tag}" >> $GITHUB_ENV
- name: Upload Raspberry Pi OS Image
if: success() # Only upload the image if the tests were successful
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: 2.0.2
files: inkycal_os.img
tag_name: ${{ env.version }}
files: inkycal_os.img/inkycal_os.img
generate-docs:
name: Generate Docs