From 2ff547d099fa25f37e3f0a56acbc1cc348eef445 Mon Sep 17 00:00:00 2001 From: "Stephane Lacoin (aka nxmatic)" Date: Mon, 25 Mar 2024 16:19:27 +0100 Subject: [PATCH] BDE-226 aligned github workflow actions to last published versions --- .github/workflows/ci.yml | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48ea058e..3783bf63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,12 +30,12 @@ jobs: steps: - name: Checkout Commit - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -51,7 +51,7 @@ jobs: run: pnpm build:chrome - name: Upload build artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: chrome path: ./dist/chrome @@ -62,32 +62,19 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: chrome path: ./dist/chrome - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Release and Upload Asset + uses: softprops/action-gh-release@v1 with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + files: ./dist/chrome/* draft: true prerelease: true - - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./dist/chrome/chrome.zip - asset_name: chrome.zip - asset_content_type: application/zip