Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ updates:
target-branch: "dev"
schedule:
interval: "weekly"
- package-ecosystem: "gitsubmodule"
directory: "/"
target-branch: "dev"
schedule:
interval: "daily"
37 changes: 37 additions & 0 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy
on:
push:
branches:
- master
- dev
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Resolved
Comment thread
boomzero marked this conversation as resolved.
Resolved
workflow_dispatch:
# master 与 dev 共用同一个 GitHub Pages 站点,避免两次部署同时进行
concurrency:
group: pages
cancel-in-progress: false
jobs:
Deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
deployments: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v6
- uses: cloudflare/pages-action@v1
if: github.ref == 'refs/heads/master'
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Resolved
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
Resolved
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 89969bdf9d5ab8202f8ad8b8ae2c40b8
projectName: xmoj-script
directory: .
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: .
- id: deployment
uses: actions/deploy-pages@v4
5 changes: 0 additions & 5 deletions .github/workflows/Prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,3 @@ jobs:
prerelease: true
files: XMOJ.user.js
target_commitish: ${{ github.sha }}
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: .
- uses: actions/deploy-pages@v4
11 changes: 0 additions & 11 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,3 @@ jobs:
draft: false
prerelease: false
files: XMOJ.user.js
- uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 89969bdf9d5ab8202f8ad8b8ae2c40b8
projectName: xmoj-script
directory: .
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: .
- uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "backend"]
path = backend
url = https://github.com/XMOJ-Script-dev/XMOJ-bbs
branch = master
Loading
Loading