42 lines
781 B
YAML
42 lines
781 B
YAML
name: Release on main branches
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-20.04]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Update system
|
|
run: |
|
|
apt-get update -qy
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
apt-get install -y curl gcc git
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > ./rustup.sh
|
|
chmod +x rustup.sh
|
|
./rustup.sh -y
|
|
|
|
- name: Build release
|
|
run: |
|
|
. "$HOME/.cargo/env"
|
|
cargo build --release
|
|
|
|
# publish:
|
|
# image: woodpeckerci/plugin-release
|
|
# settings:
|
|
# files:
|
|
# - ''
|
|
# api_key:
|
|
# from_secret: ACCESS_TOKEN
|