Fingerlink/.forgejo/workflows/release.yml

38 lines
1.1 KiB
YAML
Raw Permalink Normal View History

on:
2024-03-18 01:35:51 +01:00
push:
tags:
- 'v*'
jobs:
docker:
name: docker build
runs-on: ubuntu-22.04
steps:
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME}}
password: ${{ secrets.DOCKERHUB_TOKEN}}
- uses: docker/build-push-action@v5
with:
push: false
tags: karcsesz/fingerlink:latest
- uses: docker/build-push-action@v5
with:
push: false
tags: karcsesz/fingerlink:latest-nano
build-args: "editor=nano"
binary:
name: raw artifact
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/rust-toolchain@stable
with:
targets: "x86_64-unknown-linux-musl,aarch64-unknown-linux-musl"
2024-03-18 01:40:11 +01:00
- run: apt-get update && apt-get install -y musl-tools
- run: cargo build --release --target x86_64-unknown-linux-musl
- run: mkdir _release && mv target/x86_64-unknown-linux-musl/release/fingerlink _release/fingerlink
- uses: actions/forgejo-release@v1
with:
direction: upload
release-dir: _release