Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 工作流更新 #130

Merged
merged 6 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
name: azure-deploy
name: Build and Deploy

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
workflow_dispatch:
inputs:
deploy-to-azure:
description: '部署到Azure'
default: true
required: true
type: boolean

jobs:
deploy:
timeout-minutes: 20
runs-on: ubuntu-latest
env:
DO_NOT_TRACK: 1
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Fetch docs
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: "MaaAssistantArknights/MaaAssistantArknights"
sparse-checkout: "docs"
Expand All @@ -29,9 +37,9 @@ jobs:
rm -r ./temp

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "yarn"

- name: Install dependencies
Expand All @@ -40,8 +48,9 @@ jobs:
- name: Build
run: yarn build

- name: Deploy
- name: Deploy to Azure
id: deploy
if: github.repository == 'MaaAssistantArknights/maa-website' && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch' && github.event.inputs.deploy-to-azure == 'true'))
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_WAVE_001CBA500 }}
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/build-test.yaml

This file was deleted.

874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.3.cjs

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.1.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-3.6.3.cjs
yarnPath: .yarn/releases/yarn-4.1.0.cjs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
"framer-motion": "^10.2.3",
"react-use": "^17.4.0"
},
"packageManager": "yarn@3.6.3"
"packageManager": "yarn@4.1.0"
}
1 change: 0 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"$schema": "https://turborepo.org/schema.json",
"baseBranch": "origin/main",
"pipeline": {
"build": {
"dependsOn": [
Expand Down
Loading
Loading