Compare commits

...

17 commits

Author SHA1 Message Date
BBaoVanC
23253e9bdf
Add release workflow 2020-12-27 20:41:53 -06:00
BBaoVanC
945089a3ef
Change commit.yml to integration.yml 2020-12-27 19:26:31 -06:00
BBaoVanC
c66d50e589
Separate shellcheck and build 2020-12-27 19:25:06 -06:00
BBaoVanC
5a07732863
Combine workflows into commit.yml 2020-12-27 19:22:59 -06:00
BBaoVanC
bf832c359f
Add shellcheck workflow and rename deb-build to commit-build 2020-12-27 19:20:01 -06:00
BBaoVanC
7aa3657ed9
Fix typo (arm64 -> amd64) 2020-12-27 19:10:47 -06:00
BBaoVanC
485f16cfed
Separate deb artifacts 2020-12-27 19:06:51 -06:00
BBaoVanC
31836682c1
Add amd64 job and remove unnecessary commit hash job 2020-12-27 19:00:28 -06:00
BBaoVanC
af216e7f09
Change arch to iphoneos-arm 2020-12-27 18:54:34 -06:00
BBaoVanC
2f5e423a0f
Upload nekofetch*.deb 2020-12-27 18:46:45 -06:00
BBaoVanC
4e239543c8
Upload artifact 2020-12-27 18:45:45 -06:00
BBaoVanC
ee5ee14a5c
Change version to a static number 2020-12-27 18:40:05 -06:00
BBaoVanC
03bb78518e
Change version to use commit hash 2020-12-27 18:29:36 -06:00
BBaoVanC
1a713cf57c
Add release version test 2020-12-27 18:23:35 -06:00
BBaoVanC
576ab0b58a
Remove branch requirement 2020-12-27 18:13:02 -06:00
BBaoVanC
ea4e2b5346
Remove . before .deb in name 2020-12-27 18:08:59 -06:00
BBaoVanC
77877605f7
Add deb-build workflow 2020-12-27 18:06:36 -06:00
3 changed files with 116 additions and 0 deletions

48
.github/workflows/integration.yml vendored Normal file
View file

@ -0,0 +1,48 @@
# Build a deb artifact on commit
name: CI
on: [push, pull_request]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run shellcheck
uses: ludeeus/action-shellcheck@master
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build deb for iphoneos-arm
uses: jiro4989/build-deb-action@v2
with:
package: nekofetch
package_root: debpkg
maintainer: propr and bbaovanc
version: 0.2
arch: 'iphoneos-arm'
desc: 'neofetch with nekos'
- name: Build deb for amd64
uses: jiro4989/build-deb-action@v2
with:
package: nekofetch
package_root: debpkg
maintainer: propr and bbaovanc
version: 0.2
arch: 'amd64'
desc: 'neofetch with nekos'
- name: Upload iphoneos-arm deb as artifact
uses: actions/upload-artifact@v2
with:
name: iphoneos-arm-deb
path: nekofetch*iphoneos-arm.deb
- name: Upload amd64 deb as artifact
uses: actions/upload-artifact@v2
with:
name: amd64-deb
path: nekofetch*amd64.deb

68
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,68 @@
name: Upload release assets
on:
push:
tags:
- 'v*'
jobs:
build:
name: Upload assets to release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get version
id: version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
prerelease: false
- name: Build deb for iphoneos-arm
uses: jiro4989/build-deb-action@v2
with:
package: nekofetch
package_root: debpkg
maintainer: propr and bbaovanc
version: 0.2
arch: 'iphoneos-arm'
desc: 'neofetch with nekos'
- name: Build deb for amd64
uses: jiro4989/build-deb-action@v2
with:
package: nekofetch
package_root: debpkg
maintainer: propr and bbaovanc
version: 0.2
arch: 'amd64'
desc: 'neofetch with nekos'
- name: Upload iphoneos-arm asset
id: upload-iphoneos-arm-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./nekofetch_${{ steps.version.outputs.VERSION }}_iphoneos-arm.deb
asset_name: nekofetch_${{ steps.version.outputs.VERSION }}_iphoneos-arm.deb
asset_content_type: application/vnd.debian.binary-package
- name: Upload amd64 asset
id: upload-amd64-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./nekofetch_${{ steps.version.outputs.VERSION }}_amd64.deb
asset_name: nekofetch_${{ steps.version.outputs.VERSION }}_amd64.deb
asset_content_type: application/vnd.debian.binary-package