Skip to content

build(deps): bump actions/setup-java from 1 to 4 #6

build(deps): bump actions/setup-java from 1 to 4

build(deps): bump actions/setup-java from 1 to 4 #6

Workflow file for this run

name: publish
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
types: [closed]
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{inputs.flutter_version}}
channel: ${{inputs.flutter_channel}}
cache: true
- name: 📦 Install Dependencies
run: flutter pub get
- name: 🔐 Setup Pub Credentials
run: |
mkdir -p $HOME/.config/dart
cat <<EOF > $HOME/.config/dart/pub-credentials.json
{
"accessToken": "${{ secrets.PUB_CREDS_ACCESS_TOKEN }}",
"refreshToken": "${{ secrets.PUB_CREDS_REFRESH_TOKEN }}",
"idToken": "${{ secrets.PUB_CREDS_ID_TOKEN }}",
"tokenEndpoint": "https://accounts.google.com/o/oauth2/token",
"scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ],
"expiration": ${{ secrets.PUB_CREDS_EXPIRATION }}
}
- name: 📢 Publish
run: flutter pub publish -f