From f89b498f0593f5fee5d10fb7a17c8dc4a021e0f3 Mon Sep 17 00:00:00 2001 From: Bobby Burden III Date: Sat, 4 Jan 2025 10:58:31 -0500 Subject: [PATCH 1/2] Working on deploy step --- .github/workflows/build.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f4385d9..0e15723 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build +name: Build & Deploy on: [push] @@ -18,4 +18,16 @@ jobs: run: npm install - name: Build Tailwind CSS - run: make tailwind \ No newline at end of file + run: make tailwind + + deploy: + needs: build + runs-on: ubuntu-latest + + permissions: + pages: write + id-token: write + + steps: + - name: Deploy to Github Pages + uses: actions/deploy-pages@v4 \ No newline at end of file From a475079a9b23edd78a3129a465fd884051681f4e Mon Sep 17 00:00:00 2001 From: Bobby Burden III Date: Sat, 4 Jan 2025 11:01:38 -0500 Subject: [PATCH 2/2] Add Upload Artifacts step --- .github/workflows/build.yml | 20 +++++++------------- .github/workflows/deploy.yml | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e15723..dc13286 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build & Deploy +name: Build on: [push] @@ -19,15 +19,9 @@ jobs: - name: Build Tailwind CSS run: make tailwind - - deploy: - needs: build - runs-on: ubuntu-latest - - permissions: - pages: write - id-token: write - - steps: - - name: Deploy to Github Pages - uses: actions/deploy-pages@v4 \ No newline at end of file + + - name: Upload Artifacts + id: deployment + uses: actions/upload-pages-artifact@v3 + with: + path: src/ \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..8a3db1d --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,18 @@ +name: Deploy + +on: + push: + branches: + - 'main' + +jobs: + deploy: + runs-on: ubuntu-latest + + permissions: + pages: write + id-token: write + + steps: + - name: Deploy to Github Pages + uses: actions/deploy-pages@v4 \ No newline at end of file