From f680740d2aad3bc111a1f874646e4d013f74eed2 Mon Sep 17 00:00:00 2001 From: Maria Kuklina Date: Mon, 18 Mar 2024 12:54:04 +0100 Subject: [PATCH] fix release flow --- .github/workflows/release.yml | 46 +++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a72c71f..e35bb42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,31 +73,31 @@ jobs: branch: ${{ fromJson(needs.release-please.outputs.pr).headBranchName }} upload-archive: - if: ${{ needs.release-please.outputs.release_created }} + if: ${{ needs.release-please.outputs.release_created }} - runs-on: ubuntu-latest - needs: - - release-please + runs-on: ubuntu-latest + needs: + - release-please + + permissions: + contents: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 - permissions: - contents: write + - name: Setup fcli + uses: fluencelabs/setup-fluence@v1 + with: + # TODO: fluence module pack works only on main now, need to change later + version: unstable - steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Build archive + run: fluence module pack ./effector --binding-crate=./imports/ --no-input -d . - - name: Setup fcli - uses: fluencelabs/setup-fluence@v1 + - name: Upload archive + uses: softprops/action-gh-release@v1 with: - # TODO: fluence module pack works only on main now, need to change later - version: unstable - - - name: Build archive - run: fluence module pack ./effector --binding-crate=./imports/ --no-input -d . - - - name: Upload archive - uses: softprops/action-gh-release@v1 - with: - tag_name: ${{ needs.release-please.outputs.tag-name }} - files: | - ./ls_effector.tar.gz + tag_name: ${{ needs.release-please.outputs.tag-name }} + files: | + ./ls_effector.tar.gz