From 582fa717061cba43aa605b47d9c5572d5f58bd34 Mon Sep 17 00:00:00 2001 From: "alon.dotan" Date: Tue, 14 Feb 2023 12:12:03 +0200 Subject: [PATCH] wip --- .github/workflows/release.yaml | 69 +++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 30 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7f059bcd7bf..ec6f22db521 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,47 +1,56 @@ name: release on: - # push: - # tags: - # - 'v*' push: - branches: [main] + tags: + - 'v*' jobs: release: name: Create Official Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install musl tools. run: sudo apt-get install -y musl-tools - name: Build in unknown linux run: ./scripts/release_tar.sh x86_64-unknown-linux-musl - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 with: - # tag_name: ${{ github.ref }} - # release_name: ${{ github.ref }} - tag_name: "test2" - release_name: "test2" - draft: false - prerelease: false - - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - - 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: target/x86_64-unknown-linux-musl.tar.gz + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/x86_64-unknown-linux-musl.tar.gz asset_name: release-x86_64-unknown-linux-musl - asset_content_type: application/gzip + # tag: ${{ github.ref }} + tag: "test4" + overwrite: true + body: "Cairo compiler." + + + + # - name: Create Release + # id: create_release + # uses: actions/create-release@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # with: + # tag_name: ${{ github.ref }} + # release_name: ${{ github.ref }} + # draft: false + # prerelease: false + + # - uses: actions-rs/toolchain@v1 + # with: + # toolchain: stable + + # - 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: target/x86_64-unknown-linux-musl.tar.gz + # asset_name: release-x86_64-unknown-linux-musl + # asset_content_type: application/gzip