Create main.yml

This commit is contained in:
Andy Kipp 2021-03-14 14:19:06 +03:00 committed by GitHub
parent b902a94193
commit c0fe4d4c8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

26
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Build portable Fish shell
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install xonsh shell
run: apt update && apt install -y git python3-pip && pip3 install xonsh
- name: Build xxh-appimage
run: xonsh xxh-appimage-build.xsh
- name: Build xxh-portable-musl-alpine-build
run: xonsh xxh-portable-musl-alpine-build.xsh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/xxh-x86_64.AppImage
build/xxh-portable-musl-alpine-Linux-x86_64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}