From f3d554ff0fcafa3e807a33c2bda3d7244c4d1f29 Mon Sep 17 00:00:00 2001 From: Andre Wiggins Date: Sun, 27 Nov 2022 12:44:15 -0800 Subject: [PATCH] Setup deploying to GH pages --- .github/workflows/ci.yml | 5 ++++- .github/workflows/deploy.yml | 38 ++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de60726..cda08d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,10 @@ on: branches: - master pull_request: - types: [opened, synchronize, reopened, ready_for_review] + branches: + - '**' + workflow_call: + workflow_dispatch: jobs: test: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..87891c7 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,38 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy + +on: + # Runs on pushes targeting the default branch + push: + branches: ['master'] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: 'pages' + cancel-in-progress: true + +jobs: + build: + uses: ./.github/workflows/main.yml + + deploy: + needs: build + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Setup Pages + uses: actions/configure-pages@v2 + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1