Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 31 additions & 7 deletions .github/workflows/deploy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: 'CI - Pull Request'

on:
pull_request_target:
paths-ignore:
- '**/package.json'
- '**/flake.nix'
- '**/default.nix'

concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref_name }}'
Expand All @@ -11,13 +15,11 @@ permissions:
contents: read

jobs:
build:
name: 'Build nixos.org PR'
check:
name: 'Check nixos.org PR'
runs-on: 'ubuntu-latest'
permissions:
contents: read
pull-requests: write
statuses: write
steps:
- name: 'Checking out the PR repository'
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # v5.0.0
Expand All @@ -26,21 +28,43 @@ jobs:
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
persist-credentials: false
clean: true

- name: 'Installing Nix'
uses: 'cachix/install-nix-action@56a7bb7b56d9a92d4fd1bc05758de7eea4a370a8' # v31.6.0
uses: 'cachix/install-nix-action@a809471b5c7c913aa67bec8f459a11a0decc3fce' # v31.6.2

- name: 'Install npm dependencies'
run: |
npm install --workspaces --include-workspace-root

- name: 'Check formatting'
run: |
npm run format:check
npm exec --package=prettier -c 'prettier --check ./core/src'

- name: 'Lint'
run: |
npm run lint
npm exec --package=eslint -c 'eslint'

build:
name: 'Build nixos.org PR'
runs-on: 'ubuntu-latest'
needs: check
permissions:
contents: read # to fetch PR changes
pull-requests: write # to post PR comments
statuses: write # to set commit status
steps:
- name: 'Checking out the PR repository'
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # v5.0.0
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
persist-credentials: false
clean: true

- name: 'Installing Nix'
uses: 'cachix/install-nix-action@a809471b5c7c913aa67bec8f459a11a0decc3fce' # v31.6.2

- name: 'Build'
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
runs-on: 'ubuntu-latest'
permissions:
contents: read
statuses: write
deployments: write
statuses: write # to set commit status
deployments: write # to create GitHub deployments for production deploys
steps:
- name: 'Checking out the repository'
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # v5.0.0
Expand All @@ -29,7 +29,7 @@ jobs:
persist-credentials: false

- name: 'Installing Nix'
uses: 'cachix/install-nix-action@56a7bb7b56d9a92d4fd1bc05758de7eea4a370a8' # v31.6.0
uses: 'cachix/install-nix-action@a809471b5c7c913aa67bec8f459a11a0decc3fce' # v31.6.2

- name: 'Setup Cachix'
uses: 'cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad' # v16
Expand All @@ -43,11 +43,11 @@ jobs:

- name: 'Check formatting'
run: |
npm run format:check
npm exec --package=prettier -c 'prettier --check ./core/src'

- name: 'Lint'
run: |
npm run lint
npm exec --package=eslint -c 'eslint'

- name: 'Build'
run: |
Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
name: "Update flake.lock"
name: 'Update flake.lock'
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00

permissions:
permissions:
contents: read

jobs:
lockfile:
runs-on: "ubuntu-latest"
name: 'Update flake.lock'
runs-on: 'ubuntu-latest'
permissions:
contents: write
pull-requests: write
contents: write # used to update the lock file
pull-requests: write # used to create a PR if needed
steps:
- name: "Checkout repository"
uses: "actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8" # v5.0.0
- name: 'Checkout repository'
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # v5.0.0
with:
fetch-depth: 0
persist-credentials: false

- name: "Install Nix"
uses: "cachix/install-nix-action@56a7bb7b56d9a92d4fd1bc05758de7eea4a370a8" # v31.6.0
- name: 'Install Nix'
uses: 'cachix/install-nix-action@a809471b5c7c913aa67bec8f459a11a0decc3fce' # v31.6.2
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}

- name: "Update flake.lock"
uses: "DeterminateSystems/update-flake-lock@c5930b397a673a70ca70be06020e943aeac310a1" # v27
- name: 'Update flake.lock'
uses: 'DeterminateSystems/update-flake-lock@c5930b397a673a70ca70be06020e943aeac310a1' # v27
29 changes: 29 additions & 0 deletions core/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import InlineSVG from '../components/util/InlineSVG.astro';

const landingFeatures = await getCollection('landingFeatures');
const demos = await getEntry('landing', 'demos');
const sponsors = await getEntry('sponsors', 'info');
const posts = await getCollection('blog');

const currentBanner = await getEntry('banners', BANNER);
Expand Down Expand Up @@ -159,6 +160,34 @@ posts
</Container>
</div>
</div>
<div>
<Container class:list={['flex flex-col items-center gap-8 pt-4 pb-8']}>
<h2
class="font-heading text-nix-blue pb-0 text-4xl leading-tight font-bold"
>
Our awesome Sponsors
</h2>
<div class="flex flex-wrap items-center justify-center gap-8">
{
sponsors.data.items.map((item) => (
<a href={item.href} target="_blank" rel="noopener noreferrer">
<img
class="max-h-14 max-w-32 opacity-65 grayscale-100 transition-all duration-100 hover:opacity-100 hover:grayscale-0 md:max-w-48"
src={item.src}
alt={item.alt}
/>
</a>
))
}
</div>
<div class="pb-8 text-gray-500">
You want to be one of them? <a
href="/sponsorship"
class="text-nix-blue font-bold hover:underline">Become a sponsor!</a
>
</div>
</Container>
</div>
<div>
<Container>
<h2
Expand Down