amap_map/.github/workflows/publish.yml

33 lines
1.0 KiB
YAML
Raw Normal View History

2023-12-26 13:30:24 +08:00
name: Publish to Pub.dev
on:
2023-12-26 14:03:40 +08:00
push
2023-12-26 13:30:24 +08:00
jobs:
publishing:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@main # required!
- name: '>> Dart package <<'
id: package_publisher
2023-12-26 13:30:24 +08:00
uses: k-paxian/dart-package-publisher@master
with:
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}
2023-12-26 14:03:40 +08:00
skipTests: true
flutter: true
2023-12-26 14:38:45 +08:00
force: true
- name: Create Release
if: steps.package_publisher.outputs.success == 'true'
uses: kuloud/Github-Release-Action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.package_publisher.outputs.localVersion }}
title: Release ${{ steps.package_publisher.outputs.localVersion }}
body: |
Automated release for version ${{ steps.package_publisher.outputs.localVersion }}
draft: false
prerelease: false