Skip to content

v1.2.1

v1.2.1 #2

Workflow file for this run

name: Main Release
on:
release:
types: [created]
workflow_dispatch:
env:
APP_NAME: rce-runner
ARCHIVE_NAME: rce-runner_linux-x64.tar.gz
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install latest rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Prepare upload url
run: |
UPLOAD_URL="$(jq -r '.release.upload_url' "$GITHUB_EVENT_PATH" | sed -e "s/{?name,label}$/?name=${ARCHIVE_NAME}/")"
echo "UPLOAD_URL=${UPLOAD_URL}" >> $GITHUB_ENV
- name: Build application
run: |
cargo build --release
tar -czf $ARCHIVE_NAME -C target/release $APP_NAME
- name: Upload release asset
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ env.UPLOAD_URL }}
asset_path: ${{ env.ARCHIVE_NAME }}
asset_name: ${{ env.ARCHIVE_NAME }}
asset_content_type: application/gzip
github_token: ${{ secrets.GH_TOKEN }}