fix: attempt to fix publish GHA (#199)

This commit is contained in:
Eric Seidel
2024-07-25 10:05:18 -07:00
committed by GitHub
parent af228bee0a
commit 965157669c
2 changed files with 33 additions and 5 deletions
@@ -0,0 +1,27 @@
name: Publish Flutter package to pub.dev
description: Publish your Flutter package to pub.dev
inputs:
working-directory:
description: directory with-in the repository where the package is located (if not in the repository root)
required: false
runs:
using: "composite"
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
- name: 📦 Install dependencies
shell: ${{ inputs.shell }}
run: flutter pub get
working-directory: ${{ inputs.working-directory }}
- name: 🌵 Dry Run
shell: ${{ inputs.shell }}
run: flutter pub publish --dry-run
working-directory: ${{ inputs.working-directory }}
- name: 📢 Publish
shell: ${{ inputs.shell }}
run: flutter pub publish -f
working-directory: ${{ inputs.working-directory }}
+6 -5
View File
@@ -9,8 +9,9 @@ jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
# Specify the github actions deployment environment
environment: pub.dev
working-directory: shorebird_code_push
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/publish_flutter_package
with:
# Specify the github actions deployment environment
working-directory: shorebird_code_push