Skip to content

Commit

Permalink
Remove flake-check workflow and update flakehub-publish-tagged workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Feb 8, 2024
1 parent 2b23414 commit 628b5ec
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Build"

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
name: build
runs-on: ubuntu-latest
environment: cachix
steps:
- uses: actions/checkout@main
- uses: DeterminateSystems/flake-checker-action@main
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@master
with:
name: nichijou
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake check --all-systems
- run: nix build
23 changes: 0 additions & 23 deletions .github/workflows/flake-check.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/flakehub-publish-tagged.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Publish tags to FlakeHub"
name: "Publish to FlakeHub"
on:
push:
tags:
Expand All @@ -16,7 +16,7 @@ jobs:
id-token: "write"
contents: "read"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/checkout@main"
with:
ref: "${{ (inputs.tag != null) && format('refs/tags/{0}', inputs.tag) || '' }}"
- uses: "DeterminateSystems/nix-installer-action@main"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<p align="center">
<!-- nixos-unstable -->
<a href="https://github.com/nixos/nixpkgs"><img src="https://img.shields.io/badge/NixOS-unstable-informational.svg?style=flat&logo=nixos&logoColor=CAD3F5&colorA=24273A&colorB=8AADF4"></a>
<!-- test -->
<a href="https://github.com/YOUSIKI/nichijou/actions/workflows/flake-check.yml"><img src="https://github.com/YOUSIKI/nichijou/actions/workflows/flake-check.yml/badge.svg"></a>
<!-- build -->
<a href="https://github.com/YOUSIKI/nichijou/actions/workflows/build.yml"><img src="https://github.com/YOUSIKI/nichijou/actions/workflows/build.yml/badge.svg"></a>
<!-- flakehub -->
<a href="https://flakehub.com/flake/YOUSIKI/nichijou"><img src="https://img.shields.io/endpoint?url=https://flakehub.com/f/YOUSIKI/nichijou/badge"></a>
</p>
Expand Down

0 comments on commit 628b5ec

Please sign in to comment.