build #136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 16 * * *' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
nix_path: nixpkgs=channel:nixpkgs-unstable | |
- run: | | |
curl ${{secrets.VPN_URL}} > iso/config.yaml | |
git add . | |
nix flake update | |
nix build .#iso-image | |
- name: Upload images artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Boot.iso | |
path: result/iso/* | |
- run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "github-actions[bot]" | |
rm -rf iso/config.yaml | |
git add . | |
git commit -m "Update flakes" || true | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |