Skip to content

Commit

Permalink
Bring back release
Browse files Browse the repository at this point in the history
  • Loading branch information
outkine committed Mar 25, 2024
1 parent c421a0f commit 5f8a9d6
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
on:
release:
types: [created]
push:
branches: [master]

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -51,10 +49,10 @@ jobs:
steps:
- uses: actions/checkout@v2

# - id: get_release
# uses: bruceadams/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/cache@v2
with:
Expand Down Expand Up @@ -98,28 +96,29 @@ jobs:
# sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' -y
# sudo apt update
# sudo apt install clang-format clang-tidy clang-tools clang clangd libc++-dev libc++1 libc++abi-dev libc++abi1 libclang-dev libclang1 liblldb-dev libllvm-ocaml-dev libomp-dev libomp5 lld lldb llvm-dev llvm-runtime llvm python3-clang

- run: cargo build --release --no-default-features ${{matrix.cargoargs}}
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}

# - if: matrix.os == 'windows-latest'
# run: |
# mkdir release
# cp -Path target/release/rumblebot.exe -Destination release
# cp -Path README.md -Destination release
- if: matrix.os == 'windows-latest'
run: |
mkdir release
cp -Path target/release/rumblebot.exe -Destination release
cp -Path README.md -Destination release
# - if: matrix.os == 'macos-12' || matrix.os == 'ubuntu-22.04'
# run: |
# mkdir release
# cp target/release/rumblebot release
# cp README.md release

# - run: 7z a release.zip ./release/*
# - uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.get_release.outputs.upload_url }}
# asset_path: release.zip
# asset_name: rumblebot-${{ matrix.os }}.zip
# asset_content_type: application/zip
- if: matrix.os == 'macos-12' || matrix.os == 'ubuntu-22.04'
run: |
mkdir release
cp target/release/rumblebot release
cp README.md release
- run: 7z a release.zip ./release/*
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: release.zip
asset_name: rumblebot-${{ matrix.os }}.zip
asset_content_type: application/zip

0 comments on commit 5f8a9d6

Please sign in to comment.