From 15ec1b0935fe4b19594c518435e045b1577ecbf1 Mon Sep 17 00:00:00 2001 From: Jeroen Domburg Date: Sun, 30 Jun 2024 23:08:48 +0800 Subject: [PATCH] Only deploy to my github pages thing, so this will not fail for forks anymore --- .github/workflows/build.yml | 3 +-- .github/workflows/pages.yml | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9dd893e..15ea899 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,5 @@ -# This is a basic workflow to help you get started with Actions -name: CI +name: build-amd64-binary # Controls when the workflow will run on: diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 5f81c2465..e1bbfd9 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,5 +1,5 @@ -name: CI +name: deploy-github-pages permissions: id-token: write @@ -52,6 +52,8 @@ jobs: path: 'web' deploy: + # Only run if we can deploy to https://spritetm.github.io/plexus_20_emu/ + if: ${{ github.repository == 'Spritetm/plexus_20_emu' }} environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}