diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index 7e74cf04595..58fede5c980 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -14,16 +14,16 @@ jobs: release_id: ${{ steps.create-release.outputs.result }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: get version run: echo "PACKAGE_VERSION=$(node -p "require('./src-tauri/tauri.conf.json').package.version")" >> $GITHUB_ENV - name: create release id: create-release - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | const { data } = await github.rest.repos.getLatestRelease({ @@ -52,12 +52,12 @@ jobs: runs-on: ${{ matrix.config.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 - cache: 'yarn' + node-version: 20 + cache: "yarn" - name: install Rust stable uses: dtolnay/rust-toolchain@stable with: @@ -77,12 +77,12 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} - APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} - APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} - APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} - APPLE_ID: ${{ secrets.APPLE_ID }} - APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} - APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} + # APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} + # APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} + # APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} + # APPLE_ID: ${{ secrets.APPLE_ID }} + # APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} + # APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} with: releaseId: ${{ needs.create-release.outputs.release_id }} args: ${{ matrix.config.os == 'macos-latest' && '--target universal-apple-darwin' || '' }} @@ -96,7 +96,7 @@ jobs: steps: - name: publish release id: publish-release - uses: actions/github-script@v6 + uses: actions/github-script@v7 env: release_id: ${{ needs.create-release.outputs.release_id }} with: diff --git a/.github/workflows/deploy_preview.yml b/.github/workflows/deploy_preview.yml index b988452433b..247e1b655a2 100644 --- a/.github/workflows/deploy_preview.yml +++ b/.github/workflows/deploy_preview.yml @@ -21,7 +21,7 @@ jobs: deploy-preview: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8ac96f19356..00f213499e9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -10,36 +10,30 @@ jobs: name: Push Docker image to Docker Hub runs-on: ubuntu-latest steps: - - - name: Check out the repo - uses: actions/checkout@v3 - - - name: Log in to Docker Hub + - name: Check out the repo + uses: actions/checkout@v4 + - name: Log in to Docker Hub uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - - - name: Extract metadata (tags, labels) for Docker + + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v4 with: - images: yidadaa/chatgpt-next-web + images: hengwang/chatgpt-next-web tags: | type=raw,value=latest type=ref,event=tag - - - - name: Set up QEMU + + - name: Set up QEMU uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - - - name: Build and push Docker image + + - name: Build and push Docker image uses: docker/build-push-action@v4 with: context: . @@ -49,4 +43,3 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max - diff --git a/.github/workflows/remove_deploy_preview.yml b/.github/workflows/remove_deploy_preview.yml index 4846cda2d6a..3565ab33415 100644 --- a/.github/workflows/remove_deploy_preview.yml +++ b/.github/workflows/remove_deploy_preview.yml @@ -19,7 +19,7 @@ jobs: delete-deployments: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Extract branch name shell: bash diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index e04e30adbd6..19367e4fc96 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -17,7 +17,7 @@ jobs: steps: # Step 1: run a standard checkout action - name: Checkout target repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Step 2: run the sync action - name: Sync upstream changes diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index faf7205d9cb..bd2a9347040 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,9 +19,9 @@ jobs: uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 cache: "yarn" - name: Cache node_modules