Artefacts should not be double zipped
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -17,13 +17,21 @@ jobs:
|
|||||||
- name: Build fonts
|
- name: Build fonts
|
||||||
run: python3 build.py
|
run: python3 build.py
|
||||||
|
|
||||||
- name: Zip TTFs
|
|
||||||
run: cd out/ttf && zip -j ../../Readerly.zip *.ttf
|
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Readerly
|
name: Readerly
|
||||||
|
path: out/ttf/*.ttf
|
||||||
|
|
||||||
|
- name: Zip TTFs for release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
run: cd out/ttf && zip -j ../../Readerly.zip *.ttf
|
||||||
|
|
||||||
|
- name: Upload release zip
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Readerly-release
|
||||||
path: Readerly.zip
|
path: Readerly.zip
|
||||||
|
|
||||||
release:
|
release:
|
||||||
@@ -36,7 +44,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Readerly
|
name: Readerly-release
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user