Skip to content

Commit

Permalink
Move firmware to release
Browse files Browse the repository at this point in the history
  • Loading branch information
kip93 committed Feb 28, 2022
1 parent 47d17e2 commit ee1b11b
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1,263 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
branches: [ main ]

jobs:
compile-and-release:
name: Compile & release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Nix
uses: cachix/install-nix-action@v15
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Print nixpkgs version
run: |
nix-instantiate --eval -E '"nixpkgs version: ${(import <nixpkgs> {}).lib.version}"'
- name: Compile
run: nix-shell --run compile

- name: Create tag
uses: fregante/daily-version-action@v1

- name: Publish release
uses: softprops/action-gh-release@v1
with:
files: |
.build/firmware.hex
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**/*[~#]
/**/.*
!/**/.github
!/**/.gitignore
!/**/.vscode
Loading

0 comments on commit ee1b11b

Please sign in to comment.