forked from flutter-tizen/flutter-tizen
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (50 loc) · 1.79 KB
/
release.yml
File metadata and controls
54 lines (50 loc) · 1.79 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
# Copyright 2025 Samsung Electronics Co., Ltd. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
name: Release
on: [pull_request, workflow_dispatch]
jobs:
pub:
runs-on: ubuntu-22.04
if: ${{ github.repository_owner == 'flutter-tizen' }}
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install credentials
run: |
mkdir -p $HOME/.config/dart
echo '${{ secrets.PUB_CREDENTIALS }}' > $HOME/.config/dart/pub-credentials.json
- name: Dry run on pull request
if: ${{ github.event_name == 'pull_request' }}
run: |
for package in $(find packages/* -maxdepth 0 -type d); do
flutter pub publish --dry-run -C $package
done
- name: Try publish
if: ${{ github.event_name == 'workflow_dispatch' }}
timeout-minutes: 2
run: |
for package in $(find packages/* -maxdepth 0 -type d); do
flutter pub publish -f -C $package || true
done
nuget:
runs-on: ubuntu-22.04
if: ${{ github.repository_owner == 'flutter-tizen' }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "6.0.x"
- name: Build
working-directory: embedding/csharp/Tizen.Flutter.Embedding
run: dotnet build -c Release
- name: Try publish
if: ${{ github.event_name == 'workflow_dispatch' }}
working-directory: embedding/csharp/Tizen.Flutter.Embedding
run: |
dotnet nuget push bin/Release/*.nupkg \
-s https://api.nuget.org/v3/index.json \
-k ${{ secrets.NUGET_APIKEY }} \
--skip-duplicate