diff options
| -rw-r--r-- | .github/workflows/check-links.yml | 3 | ||||
| -rw-r--r-- | .github/workflows/page.yml | 15 |
2 files changed, 10 insertions, 8 deletions
diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index 97ddc8a..4ea3833 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -1,4 +1,4 @@ -name: Check links +name: 🌐 Check Links "on": pull_request: @@ -26,7 +26,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@v16 - - uses: DeterminateSystems/magic-nix-cache-action@v8 - name: Build the site run: nix build --print-build-logs - name: Restore lychee cache diff --git a/.github/workflows/page.yml b/.github/workflows/page.yml index 33864e3..9dc680a 100644 --- a/.github/workflows/page.yml +++ b/.github/workflows/page.yml @@ -1,18 +1,20 @@ -name: "Deploy to Pages" +name: 📦 Deploy to Pages on: push: branches: ["main"] paths-ignore: - - ".github/**" - "README.md" workflow_dispatch: + permissions: contents: read pages: write id-token: write + concurrency: group: "pages" cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest @@ -20,16 +22,17 @@ jobs: - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@v16 - uses: DeterminateSystems/magic-nix-cache-action@v8 - - name: nix check + - name: ❄️ nix check run: nix flake check - - name: nix fmt + - name: ❄️ nix fmt run: nix fmt - - name: Build the site + - name: ❄️ Build the site run: nix build - - name: Upload artifact + - name: 📦 Upload artifact uses: actions/upload-pages-artifact@v3 with: path: ./result + deploy: runs-on: ubuntu-latest environment: |
