mirror of
https://github.com/house-of-vanity/mus-fuse.git
synced 2025-08-21 08:07:16 +00:00
Improve CI procedure. Add Debian/Ubuntu and Arch Linux packages into binary release.
This commit is contained in:
70
.github/workflows/build.yml
vendored
70
.github/workflows/build.yml
vendored
@@ -69,7 +69,7 @@ jobs:
|
|||||||
id: get_version
|
id: get_version
|
||||||
run: |
|
run: |
|
||||||
echo ${GITHUB_REF/refs\/tags\/v/}
|
echo ${GITHUB_REF/refs\/tags\/v/}
|
||||||
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@@ -84,43 +84,49 @@ jobs:
|
|||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: mus-fuse
|
name: mus-fuse
|
||||||
- run: ls -lh /home/runner/work/mus-fuse/mus-fuse/
|
path: ./artifacts/mus-fuse-${{ steps.get_version.outputs.VERSION }}
|
||||||
- name: Upload Binary Release
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./mus-fuse/mus-fuse
|
|
||||||
asset_name: mus-fuse-${{ steps.get_version.outputs.VERSION }}
|
|
||||||
asset_content_type: application/x-pie-executable;
|
|
||||||
- run: ls -lh /home/runner/work/mus-fuse/mus-fuse/
|
|
||||||
- name: Download Arch Package
|
- name: Download Arch Package
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: arch_linux_mus-fuse-x86_64.pkg.tar.zst
|
name: arch_linux_mus-fuse-x86_64.pkg.tar.zst
|
||||||
- run: ls -lh /home/runner/work/mus-fuse/mus-fuse/
|
path: ./artifacts/arch_linux_mus-fuse-${{ steps.get_version.outputs.VERSION }}-x86_64.pkg.tar.zst
|
||||||
- name: Upload Arch Linux Release
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./mus-fuse/arch_linux_mus-fuse-x86_64.pkg.tar.zst
|
|
||||||
asset_name: arch_linux_mus-fuse-${{ steps.get_version.outputs.VERSION }}-x86_64.pkg.tar.zst
|
|
||||||
asset_content_type: application/zstd;
|
|
||||||
- run: ls -lh /home/runner/work/mus-fuse/mus-fuse/
|
|
||||||
- name: Download Deb Package
|
- name: Download Deb Package
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: mus-fuse_amd64.deb
|
name: mus-fuse_amd64.deb
|
||||||
- run: ls -lh /home/runner/work/mus-fuse/mus-fuse/
|
path: ./artifacts/mus-fuse_${{ steps.get_version.outputs.VERSION }}_amd64.deb
|
||||||
- name: Upload Deb Release
|
- name: Upload binaries to release
|
||||||
uses: actions/upload-release-asset@v1
|
uses: svenstaro/upload-release-action@v1-release
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
asset_path: ./mus-fuse/mus-fuse_${{ steps.get_version.outputs.VERSION }}_amd64.deb
|
file: ./artifacts/*
|
||||||
asset_name: mus-fuse_amd64.deb
|
tag: ${{ github.ref }}
|
||||||
asset_content_type: application/vnd.debian.binary-package;
|
overwrite: true
|
||||||
|
file_glob: true
|
||||||
|
# - name: Upload Arch Linux Release
|
||||||
|
# uses: actions/upload-release-asset@v1
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# with:
|
||||||
|
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
# asset_path: ./mus-fuse/arch_linux_mus-fuse-x86_64.pkg.tar.zst
|
||||||
|
# asset_name: arch_linux_mus-fuse-${{ steps.get_version.outputs.VERSION }}-x86_64.pkg.tar.zst
|
||||||
|
# asset_content_type: application/zstd;
|
||||||
|
# - name: Upload Deb Release
|
||||||
|
# uses: actions/upload-release-asset@v1
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# with:
|
||||||
|
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
# asset_path: ./mus-fuse/mus-fuse_${{ steps.get_version.outputs.VERSION }}_amd64.deb
|
||||||
|
# asset_name: mus-fuse_amd64.deb
|
||||||
|
# asset_content_type: application/vnd.debian.binary-package;
|
||||||
|
# - name: Upload Binary Release
|
||||||
|
# uses: actions/upload-release-asset@v1
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# with:
|
||||||
|
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
# asset_path: ./mus-fuse/mus-fuse
|
||||||
|
# asset_name: mus-fuse-${{ steps.get_version.outputs.VERSION }}
|
||||||
|
# asset_content_type: application/x-pie-executable;
|
||||||
|
Reference in New Issue
Block a user