From ef6aacbe150d6f7036fd1f8ead936685b0f4a895 Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Tue, 21 May 2024 10:51:25 +1000 Subject: [PATCH] Add github actions --- .github/workflows/ci.yaml | 9 +++++++++ .github/workflows/release.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..a0d7f87 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,9 @@ +name: CI +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: nixbuild/nix-quick-install-action@v28 + - uses: actions/checkout@v4 + - run: nix build diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..84052eb --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,25 @@ +name: Deployment + +on: + release: + types: + - created + +jobs: + dist_linux: + runs-on: ubuntu-latest + steps: + - uses: nixbuild/nix-quick-install-action@v28 + - uses: actions/checkout@v4 + - name: build + run: nix bundle --bundler github:ralismark/nix-appimage/ecaffbe33535509cadb198f142849295f4dfeca4 . -o dedumi + - name: upload + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./dedumi + asset_name: dedumi-${{ github.event.release.tag_name }}-linux-x86_64.AppImage + asset_content_type: binary/octet-stream +