From 764b0bcb9e9e89e1d54a5e7ea347a306fcccd515 Mon Sep 17 00:00:00 2001 From: Yeicor <4929005+Yeicor@users.noreply.github.com> Date: Sun, 3 Mar 2024 19:34:05 +0100 Subject: [PATCH] fix deploy workflow --- .github/workflows/deploy.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ee02b77..8db58e6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,20 +9,30 @@ permissions: contents: "write" jobs: - build-and-deploy: + deploy: concurrency: "ci-${{ github.ref }}" # Recommended if you intend to make multiple deployments in quick succession. runs-on: "ubuntu-latest" steps: - - uses: "actions/download-artifact@v4" + - uses: "actions/download-workflow-artifact@v3" with: + workflow: "ci.yml" name: "frontend" path: "./public" - - uses: "actions/download-artifact@v4" + - uses: "actions/download-workflow-artifact@v3" with: + workflow: "ci.yml" name: "logo" path: "./public" - run: "ls -l -R ./public" - uses: "JamesIves/github-pages-deploy-action@v4" with: folder: "public" + - uses: "svenstaro/upload-release-action@v2" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + file: "./public/*" + asset_name: "frontend" + tag: "${{ github.ref }}" + overwrite: true + file_glob: true