Skip to content

Commit

Permalink
Merge branch 'dev' into pr/madkarmaa/257
Browse files Browse the repository at this point in the history
  • Loading branch information
Ushie committed Dec 4, 2024
2 parents 1f20239 + a87c534 commit 01c356a
Show file tree
Hide file tree
Showing 24 changed files with 2,775 additions and 2,028 deletions.
1 change: 0 additions & 1 deletion .env

This file was deleted.

3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RV_API_URL=https://api.revanced.app
RV_GOOGLE_TAG_MANAGER_ID=
RV_DMCA_GUID=
17 changes: 10 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,36 @@ on:
- dev
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
pull-requests: write
name: Deploy
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
env:
RV_API_URL: ${{ vars.RV_API_URL }}
RV_GOOGLE_TAG_MANAGER_ID: ${{ vars.RV_GOOGLE_TAG_MANAGER_ID }}
RV_DMCA_GUID: ${{ vars.RV_DMCA_GUID }}
run: |
npm i
npm run build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
directory: public
id: publish
command: pages deploy public --project-name=revanced-website
id: deploy

- name: Comment deployment URL
if: ${{ github.event_name == 'pull_request' }}
uses: thollander/actions-comment-pull-request@v2
with:
GITHUB_TOKEN: ${{ secrets.PULL_REQUESTS_WRITE }}
message: Deployed at ${{ steps.publish.outputs.alias }}.
message: Deployed at ${{ steps.deploy.outputs.pages-deployment-alias-url }}.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ node_modules
/public
/.svelte-kit
/package
!.env.example
.env
/_docs_src
/static/docs
Loading

0 comments on commit 01c356a

Please sign in to comment.