-
-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (35 loc) · 1.08 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
extensions:
- tar.gz
- tar.gz.sha256
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.37
- name: Setup Fluent CI CLI
run: deno install -A -r https://cli.fluentci.io -n fluentci
- name: Setup Dagger
run: |
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.8 sh
sudo mv bin/dagger /usr/local/bin
dagger version
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build
run: fluentci run . build
env:
TAG: ${{ env.RELEASE_VERSION }}
- name: Upload release assets
run: fluentci run github_pipeline release_upload
env:
TAG: ${{ env.RELEASE_VERSION }}
FILE: /assets/mada_${{ env.RELEASE_VERSION }}_x86_64-unknown-linux-gnu.${{ matrix.extensions }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}