mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-23 16:39:17 +01:00
c3e27ed9ee
- also rename from arm to armhf - also other small changes in kdfu
84 lines
3.3 KiB
YAML
84 lines
3.3 KiB
YAML
name: Create zip files
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
create-zip-files:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Create name version env
|
|
run: |
|
|
sudo timedatectl set-timezone Asia/Singapore
|
|
echo "DATE=$(date +%Y-%m-%d)" >> $GITHUB_ENV
|
|
echo "SHA_SHORT=$(echo ${{ github.sha }} | cut -c -7)" >> $GITHUB_ENV
|
|
|
|
- name: Create git hash
|
|
run: echo "${{ env.DATE }}-${{ env.SHA_SHORT }}" | tee ./resources/git_hash
|
|
|
|
- name: Move linux binaries
|
|
run: |
|
|
mkdir -p ./exclude/bin
|
|
cp -R ./bin/* ./exclude/bin
|
|
rm -r ./bin/linux ./bin/windows
|
|
|
|
- name: Zip macos files
|
|
run: zip -r ${{ github.event.repository.name }}_macos_${{ env.DATE }}-${{ env.SHA_SHORT }}.zip bin/ LICENSE resources/ restore.sh README.md
|
|
|
|
- name: Move macos binaries
|
|
run: |
|
|
rm -r ./bin/macos
|
|
mkdir ./bin/linux
|
|
cp -R ./exclude/bin/linux/x86_64 ./bin/linux
|
|
|
|
- name: Zip linux files
|
|
run: zip -r ${{ github.event.repository.name }}_linux_x86_64_${{ env.DATE }}-${{ env.SHA_SHORT }}.zip bin/ LICENSE resources/ restore.sh README.md
|
|
|
|
- name: Move linux binaries and other files
|
|
run: |
|
|
rm -r ./bin/linux/x86_64
|
|
cp -R ./exclude/bin/linux/arm64 ./bin/linux
|
|
|
|
- name: Zip linux arm64 files
|
|
run: zip -r ${{ github.event.repository.name }}_linux_arm64_${{ env.DATE }}-${{ env.SHA_SHORT }}.zip bin/ LICENSE resources/ restore.sh README.md
|
|
|
|
- name: Move linux arm64 binaries and other files
|
|
run: |
|
|
rm -r ./bin/linux/arm64
|
|
cp -R ./exclude/bin/linux/armhf ./bin/linux
|
|
|
|
- name: Zip linux armhf files
|
|
run: zip -r ${{ github.event.repository.name }}_linux_armhf_${{ env.DATE }}-${{ env.SHA_SHORT }}.zip bin/ LICENSE resources/ restore.sh README.md
|
|
|
|
- name: Move linux armhf binaries and other files
|
|
run: |
|
|
rm -r ./bin/linux
|
|
cp -R ./exclude/bin/windows ./bin
|
|
|
|
- name: Zip win files
|
|
run: zip -r ${{ github.event.repository.name }}_windows_${{ env.DATE }}-${{ env.SHA_SHORT }}.zip bin/ LICENSE resources/ restore.cmd restore.sh README.md
|
|
|
|
- name: Copy exclude files back and download other files
|
|
run: |
|
|
cp -R ./exclude/bin/* ./bin
|
|
./resources/complete.sh
|
|
|
|
- name: Zip complete files
|
|
run: zip -r ${{ github.event.repository.name }}_complete_${{ env.DATE }}-${{ env.SHA_SHORT }}.zip bin/ LICENSE resources/ restore.cmd restore.sh README.md
|
|
|
|
- name: Update latest release
|
|
uses: pyTooling/Actions/releaser@main
|
|
with:
|
|
tag: latest
|
|
rm: true
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
files: |
|
|
${{ github.event.repository.name }}_complete_${{ env.DATE }}-${{ env.SHA_SHORT }}.zip
|
|
${{ github.event.repository.name }}_macos_${{ env.DATE }}-${{ env.SHA_SHORT }}.zip
|
|
${{ github.event.repository.name }}_linux_armhf_${{ env.DATE }}-${{ env.SHA_SHORT }}.zip
|
|
${{ github.event.repository.name }}_linux_arm64_${{ env.DATE }}-${{ env.SHA_SHORT }}.zip
|
|
${{ github.event.repository.name }}_linux_x86_64_${{ env.DATE }}-${{ env.SHA_SHORT }}.zip
|
|
${{ github.event.repository.name }}_windows_${{ env.DATE }}-${{ env.SHA_SHORT }}.zip
|