Skip to content

v1.1.1

v1.1.1 #23

Workflow file for this run

# .github/workflows/publish.yml
name: Publish to pub.dev
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v'
# Publish using the reusable workflow from dart-lang.
jobs:
publish-package:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
- name: Get dependencies
run: flutter pub get
- name: Format code
run: dart format --fix .
- name: Check publish warnings
run: dart pub publish --dry-run
- name: Publish package
uses: k-paxian/[email protected]
with:
credentialJson: ${{ secrets.CREDENTIAL_SECRET }}
flutter: true
skipTests: true
- name: Update nylo.dev
uses: fjogeleit/http-request-action@v1
with:
url: 'https://nylo.dev/api/github/actions/media-pro/version'
method: 'POST'
customHeaders: '{"Content-Type": "application/json", "X-GH-API-KEY": "${{ secrets.NYLO_API_GH_SECRET }}"}'
data: '{"version": "${{ github.ref_name }}"}'