diff --git a/.github/workflows/deploy-example.yml b/.github/workflows/deploy-example.yml new file mode 100644 index 0000000..8800ec1 --- /dev/null +++ b/.github/workflows/deploy-example.yml @@ -0,0 +1,16 @@ +name: Deploy example site +on: + push: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: test diff --git a/.github/workflows/preview-example.yml b/.github/workflows/preview-example.yml new file mode 100644 index 0000000..df2b467 --- /dev/null +++ b/.github/workflows/preview-example.yml @@ -0,0 +1,20 @@ +name: Preview example site +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed +concurrency: preview-${{ github.ref }} +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Deploy preview + uses: rossjrw/pr-preview-action@v0 + with: + source-dir: test diff --git a/test/index.html b/test/index.html new file mode 100644 index 0000000..eb1a767 --- /dev/null +++ b/test/index.html @@ -0,0 +1,3 @@ +

Hello, world!

+

This is a demonstration of the PR Preview action.

+

Learn more

\ No newline at end of file