Add GitHub Actions workflow for automated release builds
Some checks failed
/ release (nightly) (push) Failing after 38m43s
Some checks failed
/ release (nightly) (push) Failing after 38m43s
This commit is contained in:
parent
723b3f4b5d
commit
a2d150878a
1 changed files with 32 additions and 0 deletions
32
.forgejo/workflows/build.yaml
Normal file
32
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
toolchain:
|
||||||
|
- nightly
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Update rust
|
||||||
|
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
||||||
|
- name: Build release
|
||||||
|
run: cargo build --release --verbose
|
||||||
|
- name: Collect files
|
||||||
|
run: |
|
||||||
|
mkdir -p /tmp/release
|
||||||
|
cp target/release/phenix /tmp/phenix
|
||||||
|
cp phenix.service /tmp/phenix
|
||||||
|
cd /tmp/phenix
|
||||||
|
tar -czf /tmp/phenix_${{ github.ref_name }}.tar.gz .
|
||||||
|
- name: Make release
|
||||||
|
uses: actions/forgejo-release@v2.6.0
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
release-dir: /tmp/release
|
||||||
|
token: ${{ secrets.FORGEJO_TOKEN }}
|
Loading…
Add table
Add a link
Reference in a new issue