mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 06:34:35 +02:00
ci: add deployment previews (#111)
This commit is contained in:
parent
9442f645a4
commit
11b25d04eb
28
.github/pr-deployment-previews.yml
vendored
Normal file
28
.github/pr-deployment-previews.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
deployments: write
|
||||||
|
pull-requests: write
|
||||||
|
name: Publish to Cloudflare Pages
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Publish to Cloudflare Pages
|
||||||
|
uses: cloudflare/pages-action@v1
|
||||||
|
id: publish
|
||||||
|
with:
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
|
||||||
|
directory: public
|
||||||
|
|
||||||
|
- name: Comment
|
||||||
|
uses: thollander/actions-comment-pull-request@v2
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PULL_REQUESTS_WRITE }}
|
||||||
|
message: ${{ steps.publish.outputs.alias }}
|
Loading…
x
Reference in New Issue
Block a user