diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0a5dd53..383e76b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,12 +1,12 @@ name: "๐Ÿš€ ยป publish" + on: release: types: [published] -env: - CRATE_NAME: kurv - GITHUB_TOKEN: ${{ github.token }} - RUST_BACKTRACE: 1 +defaults: + run: + shell: 'bash' jobs: build: @@ -61,4 +61,22 @@ jobs: with: name: kurv-${{ matrix.platform.os_name }} path: "kurv-*" - \ No newline at end of file + + + publish-gh-release: + name: ๐Ÿš€ ยป publish github release + needs: build + runs-on: ubuntu-latest + steps: + # downloads the artifact from the build job + - name: ๐Ÿ“ฅ ยป download artifacts + uses: actions/download-artifact@v4 + + - name: ๐Ÿ“ ยป list files + run: ls -l -a -R + + - name: ๐Ÿš€ ยป upload artifacts to github release + uses: softprops/action-gh-release@v1 + with: + files: | + kurv-*