Update plugin version to 1.0.1-beta06 #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: π Publish Tapsell Mediation Flutter Release TAG | |
# Controls when the workflow will run | |
on: push | |
jobs: | |
build: | |
name: βοΈ Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: π οΈ Get Current Date | |
id: date | |
run: | | |
echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- name: π Checkout branch "master" | |
uses: actions/checkout@v4 | |
with: | |
ref: 'master' | |
- name: π Get Flutter Version | |
id: version | |
run: | | |
TAG_VERSION=$(cat pubspec.yaml | grep "version:.*" | awk '{ print $2}') | |
echo "$TAG_VERSION" | |
echo "::set-output name=tag_name::v${TAG_VERSION}" | |
echo "::set-output name=release_name::TapsellMediation-Flutter-v${TAG_VERSION:-Package}" | |
- name: π’ Prepare Release Notes | |
id: release_notes | |
run: | | |
awk '/^# / {s++} s == 1 {print}' CHANGELOG.md > /tmp/release_notes.md | |
echo "::set-output name=path::/tmp/release_notes.md" | |
- name: ποΈ Create Release + TAG | |
id: release-snapshot | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.version.outputs.tag_name }} | |
name: ${{ steps.version.outputs.release_name }} | |
body: ${{ steps.date.outputs.date }} - See [This doc](https://docs.tapsell.ir/mediation/flutter) to implement the Tapsell SDK into your app. | |
body_path: ${{ steps.release_notes.outputs.path }} | |
target_commitish: ${{ github.sha }} | |
draft: false | |
prerelease: false | |
generate_release_notes: true | |
files: | | |
CHANGELOG.md | |
README.md |