From c8eac7ad872ee32e7ab2dabf14780fa24cc70259 Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Wed, 22 May 2024 10:17:42 -0400 Subject: [PATCH] Github Example Deployment --- .github/workflows/deploy.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8f75bec..a0efe26 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,6 +13,10 @@ jobs: runs-on: ubuntu-latest container: ruby:2.7.2 + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}} + name: Build and Deploy Beer-Garden.io steps: - uses: actions/checkout@v2 @@ -36,6 +40,16 @@ jobs: env: NOKOGIRI_USE_SYSTEM_LIBRARIES: true + - name: Upload Artifact + uses: actions/upload-pages-artifact@v2 + with: + # upload entire directory + path: 'public' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v + # - name: Deploy to GitHub Pages # uses: crazy-max/ghaction-github-pages@v2 # with: @@ -44,9 +58,9 @@ jobs: # env: # GITHUB_TOKEN: ${{ secrets.BUILDBOT_PAGES }} - - name: Deploy to GitHub Pages - uses: crazy-max/ghaction-github-pages@v4 - with: - target_branch: gh-pages - build_dir: public - dry_run: true + # - name: Deploy to GitHub Pages + # uses: crazy-max/ghaction-github-pages@v4 + # with: + # target_branch: gh-pages + # build_dir: public + # dry_run: true