From 18822023fcc22cbe4754ea09f1a3b14105102143 Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Wed, 8 Nov 2023 10:41:12 +0800 Subject: [PATCH] ci: put the artifacts to root dir --- .github/workflows/release_production.yml | 11 +++++++---- .github/workflows/release_staging.yml | 8 +++++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release_production.yml b/.github/workflows/release_production.yml index 7e954845bf6..f2f3a541ff0 100644 --- a/.github/workflows/release_production.yml +++ b/.github/workflows/release_production.yml @@ -20,7 +20,8 @@ jobs: uses: "./.github/actions/build" with: target: production - - uses: "./.github/actions/versioning" + - name: Versioning + uses: "./.github/actions/versioning" with: target_branch: production - name: "Run Tests" @@ -44,7 +45,7 @@ jobs: - name: Download Artifacts uses: actions/download-artifact@v3.0.2 with: - path: dist + name: dist - name: Publish to Cloudflare uses: "./.github/actions/publish_to_pages_production" with: @@ -66,9 +67,11 @@ jobs: node-version: 20 - name: Conclusion uses: technote-space/workflow-conclusion-action@v3 - - uses: actions/download-artifact@v3.0.2 + + - name: Download Artifacts + uses: actions/download-artifact@v3.0.2 with: - path: dist + name: dist - name: Grab Version Name id: extract_version run: echo "RELEASE_VERSION=${version}" >> $GITHUB_ENV diff --git a/.github/workflows/release_staging.yml b/.github/workflows/release_staging.yml index e5727cfc6aa..5643001a7f8 100644 --- a/.github/workflows/release_staging.yml +++ b/.github/workflows/release_staging.yml @@ -24,7 +24,8 @@ jobs: uses: "./.github/actions/build" with: target: translations - - uses: "./.github/actions/versioning" + - name: Versioning + uses: "./.github/actions/versioning" with: target_branch: staging - name: "Run Tests" @@ -46,8 +47,9 @@ jobs: node-version: 20 - uses: actions/download-artifact@v3.0.2 with: - path: dist - - uses: "./.github/actions/publish_to_pages_staging" + name: dist + - name: Publish to Cloudflare + uses: "./.github/actions/publish_to_pages_staging" with: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}