-
Notifications
You must be signed in to change notification settings - Fork 15
65 lines (55 loc) · 1.82 KB
/
celest_cli.release.yaml
File metadata and controls
65 lines (55 loc) · 1.82 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: celest_cli (Release)
on:
workflow_dispatch:
push:
tags:
- 'celest_cli-v*.*.*'
env:
CELEST_NO_ANALYTICS: true
permissions:
contents: write
# Prevent duplicate runs due to Graphite
# https://graphite.dev/docs/troubleshooting#why-are-my-actions-running-twice
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}-${{ github.ref == 'refs/heads/main' && github.sha || ''}}
cancel-in-progress: true
jobs:
bundle:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Git Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: Setup Flutter
uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 # 2.19.0
with:
cache: true
- name: Fix pub cache
run: |
dart pub get
dart run fix_pub_cache.dart
working-directory: tool
- name: Get Packages
run: dart pub get
working-directory: apps/cli
- name: Create Bundle
id: bundle
run: dart run tool/release.dart --target-os=linux --target-arch=x64 --target-arch=arm64
working-directory: apps/cli
# # Test the new CLI before releasing
# - name: Install Bundle
# uses: celest-dev/setup-celest@main
# with:
# installer: ${{ steps.bundle.outputs.installer }}
# env:
# CELEST_VERBOSE: true
# - name: Test
# working-directory: apps/cli
# run: dart test -t e2e-installed --fail-fast
- name: Create Release
id: create-release
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # 2.3.2
with:
name: v${{ steps.bundle.outputs.version }}
files: ${{ steps.bundle.outputs.artifacts }}