This commit is contained in:
parent
db330b546d
commit
4f071b3068
2 changed files with 10 additions and 40 deletions
|
|
@ -1,23 +1,22 @@
|
|||
name: build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
types: [opened]
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
package_name: ["nvim-min"]
|
||||
package_name: ["nvim"]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/flakehub-cache-action@main
|
||||
- name: check
|
||||
run: nix flake check
|
||||
- name: Run `nix bundle`
|
||||
if: github.ref == 'refs/heads/main'
|
||||
id: build
|
||||
run: |
|
||||
nix bundle \
|
||||
|
|
@ -27,11 +26,8 @@ jobs:
|
|||
--extra-experimental-features flakes .#${{ matrix.package_name }}
|
||||
echo "Done building AppImage for ${{ matrix.package_name }}"
|
||||
- name: Upload bundle to release
|
||||
if: github.ref == 'refs/heads/master'
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
if: github.ref == 'refs/heads/main'
|
||||
uses: https://data.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: "${{ matrix.package_name }}.AppImage"
|
||||
asset_name: "${{ matrix.package_name }}-x86_64-linux.AppImage"
|
||||
tag: latest
|
||||
overwrite: true
|
||||
path: "${{ matrix.package_name }}.AppImage"
|
||||
name: "${{ matrix.package_name }}-x86_64-linux.AppImage"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue