Skip to content

Commit

Permalink
fix: actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Feb 24, 2024
1 parent 3e45d4d commit 7b3bfa1
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: "Continous Integration"
on:
push:
branches:
- main
pull_request:
jobs:
precommit:
name: Pre-Commit
Expand All @@ -13,7 +10,25 @@ jobs:
- nscloud-cache-tag-action-nix-store-cache
- nscloud-git-mirror-1gb
steps:
- uses: AtomiCloud/action.setup-nix@v1.1.0
- uses: AtomiCloud/actions.setup-nix@v1.1.0

- name: Run Pre-commit checks
run: nix develop .#ci -c scripts/ci/pre-commit.sh
release:
name: Release
if: github.ref == 'refs/heads/main'
needs:
- precommit
runs-on:
- nscloud-ubuntu-22.04-amd64-4x8-with-cache
- nscloud-cache-size-50gb
- nscloud-cache-tag-releaser-nix-store-cache
- nscloud-git-mirror-1gb
steps:
- uses: AtomiCloud/actions.setup-nix@v1.1.0
- uses: AtomiCloud/actions.cache-npm@v1.0.0

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: nix develop .#releaser -c scripts/ci/release.sh

0 comments on commit 7b3bfa1

Please # to comment.