Skip to content

Commit

Permalink
feat(ci): add some actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cfcosta committed Jul 21, 2024
1 parent 6f4d8e4 commit f9db3a6
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix build .#mugraph-node
22 changes: 22 additions & 0 deletions .github/workflows/notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Uses git-gloss to generate notes to commits related to a pull request
name: Push notes (using git-gloss)
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: fregante/setup-git-user@v2
- run: |
git fetch origin "refs/notes/*:refs/notes/*"
curl -fsSLO \
https://sideshowbarker.github.io/git-gloss/git-gloss \
&& bash ./git-gloss
git push origin "refs/notes/*"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f9db3a6

Please sign in to comment.