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