Skip to content

FIX: remove --locked from Dockerfile, #10

FIX: remove --locked from Dockerfile,

FIX: remove --locked from Dockerfile, #10

Workflow file for this run

name: Rust Build & Publish
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Shorten Commit SHA
id: shorten_sha
run: echo "::set-output name=short_sha::${GITHUB_SHA:0:7}"
- name: Set up rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build
run: cargo build --release
- name: Package
run: tar -czvf release.tar.gz -C target/release .
- name: Publish Release
id: publish_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
with:
files: |
release.tar.gz
tag_name: ${{ steps.shorten_sha.outputs.short_sha }}
release_name: Release ${{ steps.shorten_sha.outputs.short_sha }}
body: |
Release for commit ${{ steps.shorten_sha.outputs.short_sha }}