Update tests.yml
This commit is contained in:
parent
8c56ee8817
commit
db77b876bc
11
.github/workflows/tests.yml
vendored
11
.github/workflows/tests.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user