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:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -37,7 +37,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
PKGBUILD: $GITHUB_WORKSPACE/.github/workflows/PKGBUILD
|
PKGBUILD: $GITHUB_WORKSPACE/.github/workflows/PKGBUILD
|
||||||
OUTDIR: $HOME/arch-packages
|
OUTDIR: $HOME/arch-packages
|
||||||
- run: ls -l $HOME/arch-packages
|
|
||||||
- run: mv $HOME/arch-packages/*pkg.tar.zst mus-fuse-x86_64.pkg.tar.zst
|
- run: mv $HOME/arch-packages/*pkg.tar.zst mus-fuse-x86_64.pkg.tar.zst
|
||||||
- name: Upload Arch Package
|
- name: Upload Arch Package
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
@@ -66,6 +65,11 @@ jobs:
|
|||||||
needs: [make_bin, make_deb, make_arch]
|
needs: [make_bin, make_deb, make_arch]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Get the version (git tag)
|
||||||
|
id: get_version
|
||||||
|
run: |
|
||||||
|
echo ${GITHUB_REF/refs\/tags\/v/}
|
||||||
|
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@@ -80,6 +84,7 @@ 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/
|
||||||
- name: Upload Binary Release
|
- name: Upload Binary Release
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
@@ -87,12 +92,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./mus-fuse/mus-fuse
|
asset_path: ./mus-fuse/mus-fuse
|
||||||
asset_name: mus-fuse
|
asset_name: mus-fuse-${{ steps.get_version.outputs.VERSION }}
|
||||||
asset_content_type: application/x-pie-executable;
|
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/
|
||||||
- name: Upload Arch Linux Release
|
- name: Upload Arch Linux Release
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
@@ -100,19 +107,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./mus-fuse/arch_linux_mus-fuse-x86_64.pkg.tar.zst
|
asset_path: ./mus-fuse/arch_linux_mus-fuse-x86_64.pkg.tar.zst
|
||||||
asset_name: 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;
|
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 -lah /home/runner/work/mus-fuse/mus-fuse/
|
- run: ls -lh /home/runner/work/mus-fuse/mus-fuse/
|
||||||
- name: Upload Deb Release
|
- name: Upload Deb Release
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: /home/runner/work/mus-fuse/mus-fuse/mus-fuse_amd64.deb
|
asset_path: ./mus-fuse/mus-fuse_${{ steps.get_version.outputs.VERSION }}_amd64.deb
|
||||||
asset_name: mus-fuse_amd64.deb
|
asset_name: mus-fuse_amd64.deb
|
||||||
asset_content_type: application/vnd.debian.binary-package;
|
asset_content_type: application/vnd.debian.binary-package;
|
||||||
|
Reference in New Issue
Block a user