Skip to content

Fix token

Fix token #35

Workflow file for this run

name: LLRT Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
strategy:
fail-fast: ${{ startsWith(github.ref, 'refs/tags/') }}
matrix:
include:
- os: windows-latest
platform: windows
arch: x86_64
release: x64
toolchain: nightly-x86_64-pc-windows-gnu
- os: ubuntu-latest
platform: linux
arch: x86_64
release: x64
toolchain: nightly
- os: ubuntu-latest
platform: linux
arch: aarch64
release: arm64
toolchain: nightly
- os: macos-latest
platform: darwin
arch: x86_64
release: x64
toolchain: nightly
- os: macos-latest
platform: darwin
arch: aarch64
release: arm64
toolchain: nightly
uses: ./.github/workflows/build.yml
with:
os: ${{ matrix.os }}
platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }}
release: ${{ matrix.release }}
toolchain: ${{ matrix.toolchain }}
release:
permissions:
contents: write
discussions: write
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Fix permissions
run: |
chmod 755 ./llrt-container-x64*
chmod 755 ./llrt-container-arm64*
- name: Release
uses: softprops/action-gh-release@v2
with:
body_path: ./CHANGELOG.md
prerelease: contains(github.ref, 'beta') || contains(github.ref, 'alpha') || contains(github.ref, 'rc')
files: |
./llrt-lambda-x64.zip
./llrt-lambda-arm64.zip
./llrt-container-x64
./llrt-container-arm64
./llrt-lambda-x64-full-sdk.zip
./llrt-lambda-arm64-full-sdk.zip
./llrt-container-x64-full-sdk
./llrt-container-arm64-full-sdk
./llrt-lambda-x64-no-sdk.zip
./llrt-lambda-arm64-no-sdk.zip
./llrt-container-x64-no-sdk
./llrt-container-arm64-no-sdk
./llrt-linux-x64.zip
./llrt-windows-x64.zip
./llrt-linux-arm64.zip
./llrt-darwin-x64.zip
./llrt-darwin-arm64.zip
publish:
needs:
- build
uses: ./.github/workflows/publish.yml
with:
ref: ${{ github.ref }}
secrets:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}