-
Notifications
You must be signed in to change notification settings - Fork 19
32 lines (30 loc) · 874 Bytes
/
release.yml
File metadata and controls
32 lines (30 loc) · 874 Bytes
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
name: Release Package
on:
push:
branches:
- main
- next
jobs:
package_and_publish:
name: Package and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.REPO_DEPLOYMENT_TOKEN }}
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: dart pub get
- name: Build app
run: dart compile exe -D POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }} bin/stacked.dart
- name: release
uses: cycjimmy/semantic-release-action@v6.0.0
with:
extra_plugins: |
@semantic-release/exec
@semantic-release/git
@semantic-release/changelog
env:
GITHUB_TOKEN: ${{ secrets.REPO_DEPLOYMENT_TOKEN }}
CREDENTIALS: ${{ secrets.PUB_DEV_DEPLOYMENT_CREDENTIALS }}