nekofetch/.github/workflows/deployment.yml
BBaoVanC e63738e9e2
Switch GitHub Actions jobs to use Makefile (#3)
* Move nekofetch to root of repository

* Add Makefile

* Use Makefile for CI and CD jobs
2021-01-05 20:55:47 -06:00

50 lines
1.5 KiB
YAML

name: CD
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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 iOS deb
run: make iosdeb
- name: Build amd64 deb
run: make amd64deb
- 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: ./com.propr.nekofetch_${{ steps.version.outputs.VERSION }}_iphoneos-arm.deb
asset_name: com.propr.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