mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
test new workflow
This commit is contained in:
parent
1d10de72aa
commit
fecb8220bd
1 changed files with 22 additions and 41 deletions
63
.github/workflows/main.yml
vendored
63
.github/workflows/main.yml
vendored
|
|
@ -8,47 +8,28 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx
|
- uses: actions/checkout@v3
|
||||||
uses: docker/setup-buildx-action@v1
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
|
- name: Run `nix bundle`
|
||||||
|
id: build
|
||||||
|
run: |
|
||||||
|
mkdir -p /out && cd /out
|
||||||
|
nix bundle \
|
||||||
|
-o nvim.AppImage \
|
||||||
|
--bundler github:ralismark/nix-appimage \
|
||||||
|
--extra-experimental-features nix-command \
|
||||||
|
--extra-experimental-features flakes .#full
|
||||||
|
nix bundle \
|
||||||
|
-o nvim-minimal.AppImage \
|
||||||
|
--bundler github:ralismark/nix-appimage \
|
||||||
|
--extra-experimental-features nix-command \
|
||||||
|
--extra-experimental-features flakes .#minimal
|
||||||
|
gzip *.AppImage
|
||||||
|
|
||||||
- name: Login to ghcr.io
|
- name: Upload bundle to release
|
||||||
uses: docker/login-action@v1
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
username: ${{ github.repository_owner }}
|
file: /out/*.AppImage.gz
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Build container and push to ghcr.io
|
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
tags: ghcr.io/iofq/nvim:latest
|
|
||||||
|
|
||||||
- uses: shrink/actions-docker-extract@v1
|
|
||||||
id: extract
|
|
||||||
with:
|
|
||||||
image: ghcr.io/iofq/nvim:latest
|
|
||||||
path: /out/neovim-x86_64-linux.AppImage
|
|
||||||
|
|
||||||
- uses: shrink/actions-docker-extract@v1
|
|
||||||
id: extract-minimal
|
|
||||||
with:
|
|
||||||
image: ghcr.io/iofq/nvim:latest
|
|
||||||
path: /out/neovim-x86_64-linux-minimal.AppImage
|
|
||||||
|
|
||||||
- name: Upload archive to release
|
|
||||||
uses: xresloader/upload-to-github-release@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
file: ${{ steps.extract.outputs.destination }}
|
|
||||||
update_latest_release: true
|
|
||||||
overwrite: true
|
|
||||||
|
|
||||||
- name: Upload archive to release
|
|
||||||
uses: xresloader/upload-to-github-release@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
file: ${{ steps.extract-minimal.outputs.destination }}
|
|
||||||
update_latest_release: true
|
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue