Skip to content

fix: update GitHub workflow #41

fix: update GitHub workflow

fix: update GitHub workflow #41

Workflow file for this run

name: Release Package
on:
push:
branches:
- main
- next
jobs:
package_and_publish:
name: Package and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
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@v3
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 }}