Skip to content

Commit

Permalink
👷 Add deploy-nur CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Jul 17, 2023
1 parent 9e720d2 commit 763e575
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,25 @@ jobs:
files: |
dist/*
# deploy:
# needs: build
# runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags/')
# steps:
# - uses: Freed-Wu/[email protected]
# with:
# package_name: python-repl-python-wakatime
# ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
# deploy-aur:
# needs: build
# runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags/')
# steps:
# - uses: Freed-Wu/[email protected]
# with:
# package_name: python-repl-python-wakatime
# ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}

# yamllint disable rule:line-length
# deploy-nur:
# needs: build
# runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags/')
# steps:
# - name: Trigger Workflow
# run: >
# curl -X POST -d '{"ref":"main"}'
# -H "Accept: application/vnd.github.v3+json"
# -H "Authorization: Bearer ${{ secrets.GH_TOKEN }}"
# https://api.github.com/repos/Freed-Wu/nur-packages/actions/workflows/version.yml/dispatches
29 changes: 29 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
"on":
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:

jobs:
build:
strategy:
matrix:
nixpkgs:
- nixos-unstable
- nixpkgs-unstable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:${{matrix.nixpkgs}}
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{secrets.GITHUB_TOKEN}}
- name: Build
run: |
nix build

0 comments on commit 763e575

Please sign in to comment.